javascript - Can we set cursor as a session variable? -


I tried to set a cursor as a session variable as if it is not working.

Think about it ??

My code:

  Meteor.call ('apiresult', function (e, result) {console.log (result); session .set ("object", result)}); // Getting variable var abc = session .get ("object"); Return abc.skimlinksProductAPI.numFound;   

It seems that it is not working

Cursor can actually store in session ... sometimes open it and try it in the browser console:

& Gt; Session .set ('mycursor', player. Search ());
Undefined

Session.get ('mycursor')
LocalCollection.Cursor {collection: LocalCollection, selector_f: function, sort_f: null, skip: undefined, border: undefined ?? |}} & Gt; (Object, object, object, object)

Download now, use the latest meteor, and do so in a browser console you can find:

< Img src = "https://i.stack.imgur.com/zwPLC.png" alt = "Enter image details here">

Estimate the moral story, do not place the cursor in the session variable. Store instead of objects ( sort , field etc.)

Comments

Popular posts from this blog

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -