---
source: apollo-federation/src/connectors/expand/tests/mod.rs
expression: raw_sdl
input_file: apollo-federation/src/connectors/expand/tests/schemas/expand/directives.graphql
---
schema @link(url: "https://specs.apollo.dev/link/v1.0") @link(url: "https://specs.apollo.dev/join/v0.5", for: EXECUTION) @link(url: "https://specs.apollo.dev/connect/v0.2", for: EXECUTION) @link(url: "https://specs.apollo.dev/inaccessible/v0.2", for: SECURITY) @link(url: "https://specs.apollo.dev/tag/v0.3") @link(url: "https://specs.apollo.dev/authenticated/v0.1", for: SECURITY) @link(url: "https://specs.apollo.dev/requiresScopes/v0.1", for: SECURITY) @link(url: "https://specs.apollo.dev/policy/v0.1", for: SECURITY) @link(url: "https://specs.apollo.dev/cost/v0.1", import: ["@listSize"]) @link(url: "http://specs.example.org/custom/v0.1", import: ["@custom1", "@custom2", {name: "@originalName", as: "@custom3"}]) @link(url: "http://bugfix/weird/v1.0", import: ["@weird"]) @link(url: "https://specs.apollo.dev/context/v0.1", for: SECURITY) {
query: Query
}
directive @link(url: String, as: String, for: link__Purpose, import: [link__Import]) repeatable on SCHEMA
directive @join__graph(name: String!, url: String!) on ENUM_VALUE
directive @join__type(graph: join__Graph!, key: join__FieldSet, extension: Boolean! = false, resolvable: Boolean! = true, isInterfaceObject: Boolean! = false) repeatable on ENUM | INPUT_OBJECT | INTERFACE | OBJECT | SCALAR | UNION
directive @join__field(graph: join__Graph, requires: join__FieldSet, provides: join__FieldSet, type: String, external: Boolean, override: String, overrideLabel: String, usedOverridden: Boolean, contextArguments: [join__ContextArgument!]) repeatable on FIELD_DEFINITION | INPUT_FIELD_DEFINITION
directive @join__implements(graph: join__Graph!, interface: String!) repeatable on INTERFACE | OBJECT
directive @join__unionMember(graph: join__Graph!, member: String!) repeatable on UNION
directive @join__enumValue(graph: join__Graph!) repeatable on ENUM_VALUE
directive @join__directive(graphs: [join__Graph!], name: String!, args: join__DirectiveArguments!) repeatable on SCHEMA | OBJECT | INTERFACE | FIELD_DEFINITION
directive @inaccessible on FIELD_DEFINITION | OBJECT | INTERFACE | UNION | ARGUMENT_DEFINITION | SCALAR | ENUM | ENUM_VALUE | INPUT_OBJECT | INPUT_FIELD_DEFINITION
directive @tag(name: String!) repeatable on FIELD_DEFINITION | OBJECT | INTERFACE | UNION | ARGUMENT_DEFINITION | SCALAR | ENUM | ENUM_VALUE | INPUT_OBJECT | INPUT_FIELD_DEFINITION | SCHEMA
directive @authenticated on FIELD_DEFINITION | OBJECT | INTERFACE | SCALAR | ENUM
directive @requiresScopes(scopes: [[requiresScopes__Scope!]!]!) on FIELD_DEFINITION | OBJECT | INTERFACE | SCALAR | ENUM
directive @policy(policies: [[policy__Policy!]!]!) on FIELD_DEFINITION | OBJECT | INTERFACE | SCALAR | ENUM
directive @cost(weight: Int!) on ARGUMENT_DEFINITION | ENUM | FIELD_DEFINITION | INPUT_FIELD_DEFINITION | OBJECT | SCALAR
directive @listSize(assumedSize: Int, slicingArguments: [String!], sizedFields: [String!], requireOneSlicingArgument: Boolean = true) on FIELD_DEFINITION
directive @custom1 on OBJECT | FIELD_DEFINITION
directive @custom2 on OBJECT | FIELD_DEFINITION
directive @custom3 on OBJECT | FIELD_DEFINITION
directive @weird on FIELD | FIELD_DEFINITION
directive @context(name: String!) repeatable on INTERFACE | OBJECT | UNION
enum link__Purpose {
"""
SECURITY features provide metadata necessary to securely resolve fields.
"""
SECURITY
"""EXECUTION features provide metadata necessary for operation execution."""
EXECUTION
}
scalar link__Import
scalar join__FieldSet
scalar join__FieldValue
input join__ContextArgument {
name: String!
type: String!
context: String!
selection: join__FieldValue!
}
scalar join__DirectiveArguments
enum join__Graph {
ONE @join__graph(name: "one", url: "none")
TWO @join__graph(name: "two", url: "none")
}
type Query @join__type(graph: ONE) @join__type(graph: TWO) {
tagged: String @join__field(graph: ONE, type: "String") @tag(name: "tag")
hidden: String @join__field(graph: ONE, type: "String") @inaccessible
custom: T @join__field(graph: ONE, type: "T") @custom1
authenticated: String @join__field(graph: ONE, type: "String") @authenticated
requiresScopes: String @join__field(graph: ONE, type: "String") @requiresScopes(scopes: ["scope"])
policy: String @join__field(graph: ONE, type: "String") @policy(policies: [["admin"]])
overridden: String @join__field(graph: ONE, override: "two", overrideLabel: "label", type: "String") @join__field(graph: TWO, type: "String")
weird: [String] @join__field(graph: ONE, type: "[String]") @listSize(assumedSize: 99) @weird
customAgain: String @join__field(graph: TWO, type: "String") @custom1
z: Z @join__field(graph: TWO, type: "Z")
}
type T @join__type(graph: ONE) @custom2 {
field: String @join__field(graph: ONE, type: "String") @cost(weight: 5) @custom3
}
type X @join__type(graph: TWO, key: "id") {
id: ID! @join__field(graph: TWO, type: "ID!")
w: String @join__field(graph: TWO, type: "String", contextArguments: [{context: "two__ctx", name: "z", type: "String", selection: " { y }"}])
}
type Z @join__type(graph: TWO, key: "id") @context(name: "two__ctx") {
id: ID! @join__field(graph: TWO, type: "ID!")
y: String @join__field(graph: TWO, type: "String")
x: X @join__field(graph: TWO, type: "X")
}
scalar context__ContextFieldValue
scalar policy__Policy
scalar requiresScopes__Scope