Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

orion.collection is messing up #421

Open
JustinRvt opened this issue Jun 9, 2016 · 2 comments
Open

orion.collection is messing up #421

JustinRvt opened this issue Jun 9, 2016 · 2 comments

Comments

@JustinRvt
Copy link

Hello.

I wanted to add Orionjs to a project and I experienced a few issues.
According to documentation, I'm supposed to change
myCollection = new Mongo.Collection(name, options);
to
myCollection = new orion.collection(name, options);

Problem is:

Error: Match error: Expected object, got undefined
    at exports.check (packages/check/match.js:34:1)
    at new orion.collection (packages/orionjs:collections/new.js:8:3)
    at meteorInstall.orion.collections.cursus.js (orion/collections/cursus.js:1:10)
    at fileEvaluate (packages/modules-runtime/.npm/package/node_modules/install/install.js:141:1)
    at require (packages/modules-runtime/.npm/package/node_modules/install/install.js:75:1)

So I tried to install Orionjs from scratch and the problem persists when I'm using myCollection= new orion.collection()
With the normal Mongo syntax, my collections do not appear in the back-office BUT it manages users correctly.

Any hint would be appreciated.
Thanks.

@JulianKingman
Copy link

@JustinRvt did you get this solved?

@JulianKingman
Copy link

Ah, the options can't be blank.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants