Skip to content

Instantly share code, notes, and snippets.

@shaungehring
Created February 5, 2020 14:19
Show Gist options
  • Save shaungehring/30942c64047d4b4ba820b31b7bf22282 to your computer and use it in GitHub Desktop.
Save shaungehring/30942c64047d4b4ba820b31b7bf22282 to your computer and use it in GitHub Desktop.
type Photo {
id: ID!
url: String!
reviews: [Review]
}
type Query {
users(id: ID, first_name: String, last_name: String): [User]
photo(id: ID): [Photo]
review(id: ID): [Review]
}
type Review {
id: ID!
title: String
body: String
reviewer: User
}
type User {
id: ID!
first_name: String!
last_name: String!
photos: [Photo]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment