Created
January 14, 2018 12:03
-
-
Save marcusstenbeck/6e5633314c6da1b03478f19cbca97790 to your computer and use it in GitHub Desktop.
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
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