/* ... */
const {
AllDirective,
AllTypeDefs
} = require('apollo-server-adonis-directives-pack/src/directives/query/All')
makeExecutableSchema({
/* ... */
typeDefs: [ AllTypeDefs, /* ... */ ],
schemaDirectives: { AllDirective, /* ... */}
})
# returns a collection of all models of this specified return type
directive @all on FIELD_DEFINITION
type Query {
posts: [Post] @all
}