Skip to content

Instantly share code, notes, and snippets.

@helfer
Last active June 23, 2017 04:50
Show Gist options
  • Save helfer/3c2fb3960f0be6cf801fcf3ccfe1b38e to your computer and use it in GitHub Desktop.
Save helfer/3c2fb3960f0be6cf801fcf3ccfe1b38e to your computer and use it in GitHub Desktop.
GraphQL schema in the apollo-starter-kit
import {
makeExecutableSchema,
addMockFunctionsToSchema,
} from 'graphql-tools';
import mocks from './mocks'
const typeDefs = `
type Query {
testString: String
}
`;
const schema = makeExecutableSchema({ typeDefs });
addMockFunctionsToSchema({ schema, mocks });
export default schema;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment