Created
February 12, 2018 13:43
-
-
Save AndrewIngram/e289d94d2ee76c33ca2865a75dfdbf9e 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
export default schema => { | |
schema.define` | |
type Venue implements Node { | |
id: ID! | |
name: String! | |
address1: String | |
address2: String | |
description: String | |
postalCode: String | |
location: Point | |
createdAt: Datetime! | |
updatedAt: Datetime! | |
events(${connectionArgs}): EventConnection! | |
} | |
${createConnection("Venue")} | |
`; | |
schema.addResolvers({ | |
Venue: { | |
id: globalId() | |
} | |
}); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment