Start a new topic

Get Object(user) from the users datastore?


i am trying to get an user object from the users datastore - but it doesn't seem to work.

i thought i could handle it like i handle references to other datastores - like this:

modules.collectionAccess.collection('events').findOne({"_id":modules.collectionAccess.objectID(eventID)}, function (err, docs) {




But for any reason this does not work with users - any idea? (Or a hint in the docs i am missing?)

Best, Nico

Hi Nico,

That should work, but one thing to note is that the collection is called "user" and not "users". If this does not solve your problem, can you reply with the actual query you are attempting to execute?
Oh boy - that does the trick...
Login or Signup to post a comment