directive @delete(
# By default, the model will be calculated from the name
# of the returned "type" with the prefix 'App/Model/'
model: String) on FIELD_DEFINITION
If you assign a different set to the input and output, this will throw an exception
Delete directive deletes by primary key of model
Example
type Mutation {
deletePost(id: String!): Post @delete
deleteManyPost(id: [String!]!): [Post] @delete
}