src/schema/schema.js
function getSchema(mongooseModels, options) {
  if (!isArray(mongooseModels)) {
    mongooseModels = [mongooseModels];
  }
  const graffitiModels = model.getModels(mongooseModels);
  const fields = getFields(graffitiModels, options);
  return new GraphQLSchema(fields);
}
function getSchema(mongooseModels, options) {
  if (!isArray(mongooseModels)) {
    mongooseModels = [mongooseModels];
  }
  const graffitiModels = model.getModels(mongooseModels);
  const fields = getFields(graffitiModels, options);
  return new GraphQLSchema(fields);
}
function getSchema ( mongooseModels , options ) { if ( ! isArray ( mongooseModels ) ) { mongooseModels = [ mongooseModels ] ; } const graffitiModels = model . getModels ( mongooseModels ) ; const fields = getFields ( graffitiModels , options ) ; return new GraphQLSchema ( fields ) ; }
Returns a GraphQL schema including query and mutation fields
@param  {Array} mongooseModels
@param  {Object} options
@return {GraphQLSchema}
Returns a GraphQL schema including query and mutation fields