We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I'm getting this error right after adding:
Admin.collections.add('News');
I'm adding it to the end of my news_collection.js file:
news_collection.js
News = new Mongo.Collection('news'); News.attachSchema( new SimpleSchema({ title: { type: String, max: 80 }, content: { type: String, autoform: { adFieldInput: { type: 'textarea', rows: 4 } } }, owner: { type: String, regEx: SimpleSchema.RegEx.Id } }) ); Admin.collections.add('News');
The text was updated successfully, but these errors were encountered:
As a workaround, it looks like the second argument of Admin.collections.add() is required. Use {} if you want default options.
Admin.collections.add()
{}
Sorry, something went wrong.
Hey, you might want to update the README with this. It makes the project look unmaintained.
Thanks @MichaelJCole
No branches or pull requests
I'm getting this error right after adding:
I'm adding it to the end of my
news_collection.js
file:The text was updated successfully, but these errors were encountered: