Skip to content

Instantly share code, notes, and snippets.

@dotansimha
Created June 19, 2019 12:14
Show Gist options
  • Save dotansimha/8550982812834db6140e65f9e63d840f to your computer and use it in GitHub Desktop.
Save dotansimha/8550982812834db6140e65f9e63d840f to your computer and use it in GitHub Desktop.
type Query {
me: User!
}
interface Node {
id: ID!
}
type User implements Node {
id: ID!
username: String!
email: String!
name: String
}
type Chat implements Node {
id: ID!
users: [User!]!
title: String
}
union SearchResult = Chat | User
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment