Skip to content

Instantly share code, notes, and snippets.

@nparsons08 nparsons08/index.js Secret
Last active Nov 4, 2019

Embed
What would you like to do?
import { SchemaComposer } from 'graphql-compose';
import db from '../utils/db'; // eslint-disable-line no-unused-vars
const schemaComposer = new SchemaComposer();
import { UserQuery, UserMutation } from './user';
import { TaskQuery, TaskMutation } from './task';
schemaComposer.Query.addFields({
...UserQuery,
...TaskQuery,
});
schemaComposer.Mutation.addFields({
...UserMutation,
...TaskMutation,
});
export default schemaComposer.buildSchema();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.