Skip to content

Instantly share code, notes, and snippets.

@marcusstenbeck
Created January 17, 2018 19:55
Show Gist options
  • Save marcusstenbeck/46ed17910bed6482ef3f5466aec57962 to your computer and use it in GitHub Desktop.
Save marcusstenbeck/46ed17910bed6482ef3f5466aec57962 to your computer and use it in GitHub Desktop.
module.exports = makeExecutableSchema({
typeDefs,
resolvers: {
DateTime: GraphQLDateTime,
Query: {
allShows: () => getShows()
},
Mutation: {
addShow: (_, data) => {
addShow(data);
return true;
}
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment