@delete
Delete one or more Lucid models
For a separate add use
/* ... */
const {
DeleteDirective,
DeleteTypeDefs
} = require('apollo-server-adonis-directives-pack/src/directives/mutation/Delete')
makeExecutableSchema({
/* ... */
typeDefs: [ DeleteTypeDefs, /* ... */ ],
schemaDirectives: { DeleteDirective, /* ... */}
})Definition
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_DEFINITIONExample
Last updated