Guest User

Untitled

a guest
Feb 24th, 2018
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. export default schema => {
  2. schema.define`
  3. type Venue implements Node {
  4. id: ID!
  5. name: String!
  6. address1: String
  7. address2: String
  8. description: String
  9. postalCode: String
  10. location: Point
  11. createdAt: Datetime!
  12. updatedAt: Datetime!
  13. events(${connectionArgs}): EventConnection!
  14. }
  15. ${createConnection("Venue")}
  16. `;
  17.  
  18. schema.addResolvers({
  19. Venue: {
  20. id: globalId()
  21. }
  22. });
  23. };
Add Comment
Please, Sign In to add comment