ground-db icon indicating copy to clipboard operation
ground-db copied to clipboard

ground:db 1.0.0 - error grounding Meteor.users

Open markshust opened this issue 8 years ago • 9 comments

I'm trying to ground Meteor.users as your README says:

Ground.Collection(Meteor.users);

However, I'm receiving the following error:

Error: First argument to new Mongo.Collection must be a string or null

markshust avatar Oct 29 '15 17:10 markshust

The last version of ground:db is 0.3.14, can you be more specific where and on what occasion this happens? Some code would be nice too.

tagrudev avatar Oct 30 '15 08:10 tagrudev

@markoshust do you mean the 1.0.0-alpha.1? (it's still very early days for this eta approx january 2016)

raix avatar Oct 30 '15 08:10 raix

yes -- the 1.0.0 version (alpha).

markshust avatar Oct 30 '15 12:10 markshust

@markoshust you get no promises or documentation on alpha :) (reason why it's not working is that the alpha is actually extending the Mongo.Collection class - where the current version attaches it self on the mongo collection instance making it a bit more flexible)

raix avatar Oct 30 '15 13:10 raix

Not asking for any promises, just filing a bug with 1.0.0 --- unless you don't want us to file any bugs against that version :)

markshust avatar Oct 30 '15 13:10 markshust

issues are fine :)

raix avatar Oct 30 '15 13:10 raix

Is the eta for 1.0 still January 2016? Thanks

ghost avatar Dec 22 '15 18:12 ghost

@raix Also interested in the ETA, or general state of the project, as we need to use websql or indexed db (something with a higher storage cap than 10mb). Is the alpha working ok right now for simple things (we only use grounddb for offline collections, no re-sync etc)?

marbemac avatar Jan 17 '16 18:01 marbemac

The alpha seems to work fine here. Collections are available offline and outstanding changes are sent to the server when the connection is re-established. Changes made on other clients during the offline period are also synchronized after re-establishing the connection.

I'm just getting one error: 'Cannot call a class as a function' on line 65 of babel-runtime.js. It's caused by GroundDB, but what's strange is that it only appears once (even though we're grounding multiple collections).

KoenLav avatar Jan 29 '16 18:01 KoenLav