- Remove calls to
new SimpleSchema()
for nested fields. Example of now valid schema with nesting:
const schema = {
withNested: {
// this is considered a nested field
type: {
foo: {
type: String,
},
},
},
};
If you specifically need a blackbox JSON, add to your field schema:
typeName: "JSON"
(recommended)- OR
blackbox: true
(NOTE: this will also remove some checks during validation) - OR
type: Object
(NOTE: thus you don't have a schema for your objectin your schema field).
Example:
const schema = {
withNested: {
// this is NOT considered a nested field by graphql
type: {
foo: {
type: String,
},
},
typeName: "JSON",
},
};
Update connectors to match the new API
createMutator
is now returning the created object and not just the _id