Created
October 23, 2019 07:26
-
-
Save renepardon/a5a65a050893d56a8a9994b70c475a11 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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