Created
December 29, 2018 23:09
-
-
Save JeffML/e3c8fefd1eeac29c9fb5686af3a7de1d to your computer and use it in GitHub Desktop.
This file contains hidden or 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 } from 'graphql-tools'; | |
import resolvers from './resolvers'; | |
const typeDefs = [ | |
` | |
type Query { | |
go: String! | |
} | |
type Subscription { | |
info: String! | |
} | |
`, | |
]; | |
const options = { | |
typeDefs, | |
resolvers, | |
}; | |
const executableSchema = makeExecutableSchema(options); | |
export default executableSchema; | |
export { typeDefs }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment