Skip to content

Instantly share code, notes, and snippets.

@JeffML
Created December 29, 2018 23:09
Show Gist options
  • Save JeffML/e3c8fefd1eeac29c9fb5686af3a7de1d to your computer and use it in GitHub Desktop.
Save JeffML/e3c8fefd1eeac29c9fb5686af3a7de1d to your computer and use it in GitHub Desktop.
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