Skip to content

Instantly share code, notes, and snippets.

@renepardon
Created October 23, 2019 07:26
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 renepardon/a5a65a050893d56a8a9994b70c475a11 to your computer and use it in GitHub Desktop.
Save renepardon/a5a65a050893d56a8a9994b70c475a11 to your computer and use it in GitHub Desktop.
# just a default scalar class for now
scalar _Any @scalar(class: "App\\GraphQL\\Scalars\\Any")
type _Service {
sdl: String
}
extend type Query {
_entities(representations: [_Any!]!): [_Entity]! @field(resolver: "App\\GraphQL\\Queries\\Federation")
_service: _Service! @field(resolver: "App\\GraphQL\\Queries\\Federation")
}
directive @external on OBJECT | FIELD_DEFINITION
directive @requires(fields: String!) on FIELD_DEFINITION
directive @provides(fields: String!) on FIELD_DEFINITION
directive @key(fields: String!) on OBJECT | INTERFACE
# this is an optional directive discussed below
directive @extends on OBJECT | INTERFACE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment