Skip to content

Instantly share code, notes, and snippets.

@stemmlerjs
Created November 8, 2019 15:51
Show Gist options
  • Select an option

  • Save stemmlerjs/280f101b089483990de8a215fbf6da5e to your computer and use it in GitHub Desktop.

Select an option

Save stemmlerjs/280f101b089483990de8a215fbf6da5e to your computer and use it in GitHub Desktop.
Federation Example #3 - The resulting schema for User computed from Accounts and Reviews services
"""
Here's what the resulting User type looks like
"""
type User {
"A globally unique id for the user"
id: ID!
"The user's full name as provided"
name: String
"The account username of the user"
username: String
"A list of all reviews by the user"
reviews: [Review]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment