-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
collection.addField not working if schema is simpl-schema #2708
Comments
Try this: collection.attachSchema({
addedField1: {
type: Boolean,
. . .
},
addedField2: {
type: Object,
. . .
},
}); |
It's already in the addField function and it used to work in the release of november Vulcan/packages/vulcan-lib/lib/modules/collections.js Lines 76 to 89 in f5012d1
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
If I create a collection using a schema which is instance of simpl-schema and then I use addField, it won't appear in GraphQL
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The field to exist
The text was updated successfully, but these errors were encountered: