Skip to content

Instantly share code, notes, and snippets.

@shaungehring
Created February 5, 2020 14:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shaungehring/0224dcd21ee68e35b6943ba013d83fa5 to your computer and use it in GitHub Desktop.
Save shaungehring/0224dcd21ee68e35b6943ba013d83fa5 to your computer and use it in GitHub Desktop.
directive @external on FIELD_DEFINITION
directive @requires(fields: _FieldSet!) on FIELD_DEFINITION
directive @provides(fields: _FieldSet!) on FIELD_DEFINITION
directive @key(fields: _FieldSet!) on OBJECT | INTERFACE
directive @extends on OBJECT
scalar _Any
union _Entity = User
scalar _FieldSet
type _Service {
sdl: String
}
type Query {
users(id: ID, first_name: String, last_name: String): [User]
_entities(representations: [_Any!]!): [_Entity]!
_service: _Service!
}
type User {
id: ID!
first_name: String!
last_name: String!
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment