@update
Updating one or more Lucid models
For a separate add use
/* ... */
const {
UpdateDirective,
UpdateTypeDefs
} = require('apollo-server-adonis-directives-pack/src/directives/mutation/Update')
makeExecutableSchema({
/* ... */
typeDefs: [ UpdateTypeDefs, /* ... */ ],
schemaDirectives: { UpdateDirective, /* ... */}
})Definition
directive @update(
# 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