Introduction
Required package
Installation
npm i apollo-server-adonis-directives-packconst { makeExecutableSchema } = require('graphql-tools')
const {
TypeDefsDirective,
SchemaDirective
} = require('apollo-server-adonis-directives-pack')
module.exports = makeExecutableSchema({
TypeDefs: TypeGefsDirective,
schemaDirectives: SchemaDirective,
/* ... */
})
/* or */
const { makeExecutableSchema } = require('graphql-tools')
const {
TypeDefsDirective,
SchemaDirective
} = require('apollo-server-adonis-directives-pack')
module.exports = makeExecutableSchema({
TypeDefs: [...TypeGefsDirective, /* ... */],
schemaDirectives: { ...SchemaDirective, /* ... */},
/* ... */
})Last updated