Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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()
- }
- });
- };
Add Comment
Please, Sign In to add comment