daily pastebin goal
70%
SHARE
TWEET

Untitled

a guest Feb 24th, 2018 72 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. };
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top