buildNeo4jResolvers
Generates any unprovided resolvers for query and mutation types that are generated or that use a @cypher directive.
API Reference
typeDefs
(required): Your GraphQL type definitions in SDL format.resolvers
(required): A resolvers object to augment.query
(default:true
): A Boolean controlling whether to generate resolvers for query types.mutation
(default:true
): A Boolean controlling whether to generate resolvers for mutation types.bindingKey
(default: 'neo4j') The key of the binding (stored in your server's context object) to be used within generated resolvers for operation delegation.
Example
For every query
or mutation
type using a @cypher
directive, or for those generated by buildNeo4jTypeDefs
, a resolver will be created if one is not provided.
Last updated