This repository has been archived by the owner on May 31, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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: