Skip to content

Instantly share code, notes, and snippets.

@a7v8x
Created July 7, 2017 14:27
Show Gist options
  • Save a7v8x/525a98faedbf82a1a5ee2d5d7af8a426 to your computer and use it in GitHub Desktop.
Save a7v8x/525a98faedbf82a1a5ee2d5d7af8a426 to your computer and use it in GitHub Desktop.
import {
GraphQLSchema,
GraphQLObjectType,
} from 'graphql';
import {
userQueries,
userMutations,
} from './users/users';
export default new GraphQLSchema({
query: new GraphQLObjectType({
name: 'Query',
fields: () => ({
...userQueries,
}),
}),
mutation: new GraphQLObjectType({
name: 'Mutation',
fields: () => ({
...userMutations,
}),
}),
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment