Skip to content

Instantly share code, notes, and snippets.

@AndrewIngram
Created February 12, 2018 13:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AndrewIngram/e289d94d2ee76c33ca2865a75dfdbf9e to your computer and use it in GitHub Desktop.
Save AndrewIngram/e289d94d2ee76c33ca2865a75dfdbf9e to your computer and use it in GitHub Desktop.
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