You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now, Meteor.users.find({_id: Meteor.userId()}).fetch() should return a document but it returns a plain object. I have apply Collection._transform to transform it into a document.
If loadDatabase() would be working, I should not have to do the same.
Hi @raix
I am using groundDb in an exiting application.
Right now I am simply trying to ground
Meteor.users
:The above did not work.
So, I tried overriding
find
andfindOne
method:Now,
Meteor.users.find({_id: Meteor.userId()}).fetch()
should return a document but it returns a plain object. I have applyCollection._transform
to transform it into a document.If
loadDatabase()
would be working, I should not have to do the same.PS: Above code is written in coffeescript.
Any help would be nice.
Thanks
The text was updated successfully, but these errors were encountered: