I am creating a custom Item
Class using a GraphQL mutation. The quantity
field should be required
and have a defaultValue: 1
. I don’t see a way to add these last two details to the schema at class creation time. Am I missing a way it can be accomplished using this same mutation?
Something like:
addNumbers: [
{
name: "quantity"
required: true
defaultValue: 1
}
]
mutation {
createClass(
input: {
name: "Item"
schemaFields: {
addNumbers: [
{ name: "quantity" }
]
}
}
) {
class {
name
schemaFields {
name
}
}
}
}