Mongease GraphQL
Mongease plugin for adding support to GraphQL schemas creation.
Install
$ npm install --save mongease-graphql
Usage
;; Mongease; Mongease; const schema = MongeaseGraphQL;
API
.getTypes (): string
Returns the GraphQL schema as a string.
.getResolvers (): {}
Returns all the parsed resolvers, grouped by type.
.getSchema (): GraphQLSchema
Returns the compiled GraphQL schema.
.make ( name: string, config: {} )
Function that should be passed to Mongease.plugin
, enables auto creation of types, parsing of resolvers, and creation of schemas.
Related
- mongoose-to-graphql - Converts a Mongoose schema to its GraphQL representation.
- mongease - Tiny wrapper around Mongoose for easier creation of schemas and models. Supports plugins.
- mongease-graphql-builder - Module for auto-generating simple GraphQL queries from Mongease descriptions.
License
MIT © Fabio Spampinato