Skip to content

Instantly share code, notes, and snippets.

@marcusstenbeck
Created January 14, 2018 12:03
Show Gist options
  • Save marcusstenbeck/6e5633314c6da1b03478f19cbca97790 to your computer and use it in GitHub Desktop.
Save marcusstenbeck/6e5633314c6da1b03478f19cbca97790 to your computer and use it in GitHub Desktop.
module.exports = makeExecutableSchema({
typeDefs,
resolvers: {
DateTime: GraphQLDateTime,
Query: {
allShows: () => [
{
title: 'Dance Party',
time: '2018-10-27T13:00:00Z',
host: 'Caramba',
location: 'The Beach'
},
{
title: 'Electro Club',
time: '2018-09-12T21:00:00Z',
host: 'Das Haus',
location: 'Bäsëmënt'
},
{
title: 'New Years',
time: '2018-01-01T00:00:00Z',
host: 'The Gregorians',
location: 'The World'
}
]
},
Mutation: {
addShow: (_, data) => true
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment