How to use the graphql-compose-mongoose/node8.composeWithMongoose function in graphql-compose-mongoose

To help you get started, we’ve selected a few graphql-compose-mongoose examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github vobi-io / api-composer / lib / plugins / graphql / api.js View on Github external
models.forEach(model => {
    const type = composeWithMongoose(model, {})
    if (!this._graphqlTypes) {
      this._graphqlTypes = []
    }
    this._graphqlTypes.push(type)
  })
  return this
github graphql-compose / graphql-compose-examples / examples / northwind / schemaComposer.js View on Github external
export function composeWithMongoose(
  model: Class,
  opts?: any
): ObjectTypeComposer {
  return _composeWithMongoose(model, { schemaComposer, ...opts });
}
export function convertSchemaToGraphQL(