Skip to content

Instantly share code, notes, and snippets.

@xoor-io
Created June 12, 2018 14:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xoor-io/c69dd03107f43ff1c86fb7715997cdc3 to your computer and use it in GitHub Desktop.
Save xoor-io/c69dd03107f43ff1c86fb7715997cdc3 to your computer and use it in GitHub Desktop.
graphql-schema-index
import { types, typeResolvers } from './_type';
import { queryTypes, queryResolvers } from './_query';
import inputTypes from './_input';
import { mutationTypes, mutationResolvers } from './_mutation';
export default {
types: () => [types, queryTypes, inputTypes, mutationTypes],
resolvers: Object.assign(queryResolvers, mutationResolvers, typeResolvers),
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment