Last active
June 23, 2017 04:50
-
-
Save helfer/3c2fb3960f0be6cf801fcf3ccfe1b38e to your computer and use it in GitHub Desktop.
GraphQL schema in the apollo-starter-kit
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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