Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
schema @link(url: "https://specs.apollo.dev/federation/v2.6", import: ["@tag", "@key", "@provides", "@external", "FieldSet"]) {
schema
@link(url: "https://specs.apollo.dev/federation/v2.6", import: ["@tag", "@key", "@provides", "@external", "FieldSet"]) {
query: Query
}

type Product @key(fields: "id") @key(fields: "sku package") @key(fields: "sku variation { id }") {
type Product
@key(fields: "id")
@key(fields: "sku package")
@key(fields: "sku variation { id }") {
id: ID!
sku: String
package: String
Expand Down Expand Up @@ -43,10 +47,15 @@ union _Entity = Product | User
directive @external on OBJECT | FIELD_DEFINITION

"Used to indicate a combination of fields that can be used to uniquely identify and fetch an object or interface."
directive @key(fields: FieldSet! resolvable: Boolean = true) repeatable on OBJECT | INTERFACE
directive @key(fields: FieldSet!, resolvable: Boolean = true) repeatable on OBJECT | INTERFACE

"Links definitions within the document to external schemas."
directive @link("Gets imported specification url." url: String! "Gets optional list of imported element names." import: [String!]) repeatable on SCHEMA
directive @link(
"Gets imported specification url."
url: String!
"Gets optional list of imported element names."
import: [String!]
) repeatable on SCHEMA

"Used to annotate the expected returned fieldset from a field on a base type that is guaranteed to be selectable by the federation gateway."
directive @provides(fields: FieldSet!) on FIELD_DEFINITION
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
schema @link(url: "https://specs.apollo.dev/federation/v2.6", import: ["@tag", "@key", "@provides", "@external", "FieldSet"]) {
schema
@link(url: "https://specs.apollo.dev/federation/v2.6", import: ["@tag", "@key", "@provides", "@external", "FieldSet"]) {
query: Query
}

type Product @key(fields: "id") @key(fields: "sku package") @key(fields: "sku variation { id }") {
type Product
@key(fields: "id")
@key(fields: "sku package")
@key(fields: "sku variation { id }") {
id: ID!
sku: String
package: String
Expand Down Expand Up @@ -43,10 +47,15 @@ union _Entity = Product | User
directive @external on OBJECT | FIELD_DEFINITION

"Used to indicate a combination of fields that can be used to uniquely identify and fetch an object or interface."
directive @key(fields: FieldSet! resolvable: Boolean = true) repeatable on OBJECT | INTERFACE
directive @key(fields: FieldSet!, resolvable: Boolean = true) repeatable on OBJECT | INTERFACE

"Links definitions within the document to external schemas."
directive @link("Gets imported specification url." url: String! "Gets optional list of imported element names." import: [String!]) repeatable on SCHEMA
directive @link(
"Gets imported specification url."
url: String!
"Gets optional list of imported element names."
import: [String!]
) repeatable on SCHEMA

"Used to annotate the expected returned fieldset from a field on a base type that is guaranteed to be selectable by the federation gateway."
directive @provides(fields: FieldSet!) on FIELD_DEFINITION
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
schema @link(url: "https://specs.apollo.dev/federation/v2.6", import: ["@key", "@provides", "@external", "@tag", "FieldSet"]) {
schema
@link(url: "https://specs.apollo.dev/federation/v2.6", import: ["@key", "@provides", "@external", "@tag", "FieldSet"]) {
query: Query
}

type Product @key(fields: "id") @key(fields: "sku package") @key(fields: "sku variation { id }") {
type Product
@key(fields: "id")
@key(fields: "sku package")
@key(fields: "sku variation { id }") {
id: ID!
createdBy: User! @provides(fields: "totalProductsCreated")
sku: String
Expand Down Expand Up @@ -43,10 +47,15 @@ union _Entity = Product | User
directive @external on OBJECT | FIELD_DEFINITION

"Used to indicate a combination of fields that can be used to uniquely identify and fetch an object or interface."
directive @key(fields: FieldSet! resolvable: Boolean = true) repeatable on OBJECT | INTERFACE
directive @key(fields: FieldSet!, resolvable: Boolean = true) repeatable on OBJECT | INTERFACE

"Links definitions within the document to external schemas."
directive @link("Gets imported specification url." url: String! "Gets optional list of imported element names." import: [String!]) repeatable on SCHEMA
directive @link(
"Gets imported specification url."
url: String!
"Gets optional list of imported element names."
import: [String!]
) repeatable on SCHEMA

"Used to annotate the expected returned fieldset from a field on a base type that is guaranteed to be selectable by the federation gateway."
directive @provides(fields: FieldSet!) on FIELD_DEFINITION
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
schema @link(url: "https://specs.apollo.dev/federation/v2.6", import: ["@key", "@provides", "@external", "@tag", "FieldSet"]) {
schema
@link(url: "https://specs.apollo.dev/federation/v2.6", import: ["@key", "@provides", "@external", "@tag", "FieldSet"]) {
query: Query
}

type Product @key(fields: "id") @key(fields: "sku package") @key(fields: "sku variation { id }") {
type Product
@key(fields: "id")
@key(fields: "sku package")
@key(fields: "sku variation { id }") {
id: ID!
createdBy: User! @provides(fields: "totalProductsCreated")
sku: String
Expand Down Expand Up @@ -43,10 +47,15 @@ union _Entity = Product | User
directive @external on OBJECT | FIELD_DEFINITION

"Used to indicate a combination of fields that can be used to uniquely identify and fetch an object or interface."
directive @key(fields: FieldSet! resolvable: Boolean = true) repeatable on OBJECT | INTERFACE
directive @key(fields: FieldSet!, resolvable: Boolean = true) repeatable on OBJECT | INTERFACE

"Links definitions within the document to external schemas."
directive @link("Gets imported specification url." url: String! "Gets optional list of imported element names." import: [String!]) repeatable on SCHEMA
directive @link(
"Gets imported specification url."
url: String!
"Gets optional list of imported element names."
import: [String!]
) repeatable on SCHEMA

"Used to annotate the expected returned fieldset from a field on a base type that is guaranteed to be selectable by the federation gateway."
directive @provides(fields: FieldSet!) on FIELD_DEFINITION
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
schema @composeDirective(name: "@custom") @link(url: "https://specs.apollo.dev/federation/v2.6", import: ["@key", "@tag", "FieldSet", "@composeDirective"]) @link(url: "https://specs.custom.dev/custom/v1.0", import: ["@custom"]) {
schema
@composeDirective(name: "@custom")
@link(url: "https://specs.apollo.dev/federation/v2.6", import: ["@key", "@tag", "FieldSet", "@composeDirective"])
@link(url: "https://specs.custom.dev/custom/v1.0", import: ["@custom"]) {
query: Query
}

Expand All @@ -25,10 +28,15 @@ directive @composeDirective(name: String!) repeatable on SCHEMA
directive @custom on FIELD_DEFINITION

"Used to indicate a combination of fields that can be used to uniquely identify and fetch an object or interface."
directive @key(fields: FieldSet! resolvable: Boolean = true) repeatable on OBJECT | INTERFACE
directive @key(fields: FieldSet!, resolvable: Boolean = true) repeatable on OBJECT | INTERFACE

"Links definitions within the document to external schemas."
directive @link("Gets imported specification url." url: String! "Gets optional list of imported element names." import: [String!]) repeatable on SCHEMA
directive @link(
"Gets imported specification url."
url: String!
"Gets optional list of imported element names."
import: [String!]
) repeatable on SCHEMA

"Scalar representing a set of fields."
scalar FieldSet
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
schema @composeDirective(name: "@custom") @link(url: "https://specs.apollo.dev/federation/v2.6", import: ["@key", "@tag", "FieldSet", "@composeDirective"]) @link(url: "https://specs.custom.dev/custom/v1.0", import: ["@custom"]) {
schema
@composeDirective(name: "@custom")
@link(url: "https://specs.apollo.dev/federation/v2.6", import: ["@key", "@tag", "FieldSet", "@composeDirective"])
@link(url: "https://specs.custom.dev/custom/v1.0", import: ["@custom"]) {
query: Query
}

Expand All @@ -25,10 +28,15 @@ directive @composeDirective(name: String!) repeatable on SCHEMA
directive @custom on FIELD_DEFINITION

"Used to indicate a combination of fields that can be used to uniquely identify and fetch an object or interface."
directive @key(fields: FieldSet! resolvable: Boolean = true) repeatable on OBJECT | INTERFACE
directive @key(fields: FieldSet!, resolvable: Boolean = true) repeatable on OBJECT | INTERFACE

"Links definitions within the document to external schemas."
directive @link("Gets imported specification url." url: String! "Gets optional list of imported element names." import: [String!]) repeatable on SCHEMA
directive @link(
"Gets imported specification url."
url: String!
"Gets optional list of imported element names."
import: [String!]
) repeatable on SCHEMA

"Scalar representing a set of fields."
scalar FieldSet
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
schema @link(url: "https://specs.apollo.dev/federation/v2.6", import: ["@key", "@external", "@tag", "FieldSet"]) {
schema
@link(url: "https://specs.apollo.dev/federation/v2.6", import: ["@key", "@external", "@tag", "FieldSet"]) {
query: Query
}

Expand Down Expand Up @@ -31,10 +32,15 @@ union _Entity = User
directive @external on OBJECT | FIELD_DEFINITION

"Used to indicate a combination of fields that can be used to uniquely identify and fetch an object or interface."
directive @key(fields: FieldSet! resolvable: Boolean = true) repeatable on OBJECT | INTERFACE
directive @key(fields: FieldSet!, resolvable: Boolean = true) repeatable on OBJECT | INTERFACE

"Links definitions within the document to external schemas."
directive @link("Gets imported specification url." url: String! "Gets optional list of imported element names." import: [String!]) repeatable on SCHEMA
directive @link(
"Gets imported specification url."
url: String!
"Gets optional list of imported element names."
import: [String!]
) repeatable on SCHEMA

"Scalar representing a set of fields."
scalar FieldSet
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
schema @link(url: "https://specs.apollo.dev/federation/v2.6", import: ["@external", "@key", "@tag", "FieldSet"]) {
schema
@link(url: "https://specs.apollo.dev/federation/v2.6", import: ["@external", "@key", "@tag", "FieldSet"]) {
query: Query
}

Expand Down Expand Up @@ -31,10 +32,15 @@ union _Entity = User
directive @external on OBJECT | FIELD_DEFINITION

"Used to indicate a combination of fields that can be used to uniquely identify and fetch an object or interface."
directive @key(fields: FieldSet! resolvable: Boolean = true) repeatable on OBJECT | INTERFACE
directive @key(fields: FieldSet!, resolvable: Boolean = true) repeatable on OBJECT | INTERFACE

"Links definitions within the document to external schemas."
directive @link("Gets imported specification url." url: String! "Gets optional list of imported element names." import: [String!]) repeatable on SCHEMA
directive @link(
"Gets imported specification url."
url: String!
"Gets optional list of imported element names."
import: [String!]
) repeatable on SCHEMA

"Scalar representing a set of fields."
scalar FieldSet
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
schema @link(url: "https://specs.apollo.dev/federation/v2.6", import: ["@key", "@tag", "FieldSet"]) {
schema
@link(url: "https://specs.apollo.dev/federation/v2.6", import: ["@key", "@tag", "FieldSet"]) {
query: QueryOfTestTypePropertyDirective
}

Expand All @@ -21,10 +22,15 @@ type _Service {
union _Entity = TestTypePropertyDirective

"Used to indicate a combination of fields that can be used to uniquely identify and fetch an object or interface."
directive @key(fields: FieldSet! resolvable: Boolean = true) repeatable on OBJECT | INTERFACE
directive @key(fields: FieldSet!, resolvable: Boolean = true) repeatable on OBJECT | INTERFACE

"Links definitions within the document to external schemas."
directive @link("Gets imported specification url." url: String! "Gets optional list of imported element names." import: [String!]) repeatable on SCHEMA
directive @link(
"Gets imported specification url."
url: String!
"Gets optional list of imported element names."
import: [String!]
) repeatable on SCHEMA

"Scalar representing a set of fields."
scalar FieldSet
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
schema @link(url: "https://specs.apollo.dev/federation/v2.6", import: ["@key", "@tag", "FieldSet"]) {
schema
@link(url: "https://specs.apollo.dev/federation/v2.6", import: ["@key", "@tag", "FieldSet"]) {
query: QueryOfTestTypePropertyDirectives
}

Expand All @@ -22,10 +23,15 @@ type _Service {
union _Entity = TestTypePropertyDirectives

"Used to indicate a combination of fields that can be used to uniquely identify and fetch an object or interface."
directive @key(fields: FieldSet! resolvable: Boolean = true) repeatable on OBJECT | INTERFACE
directive @key(fields: FieldSet!, resolvable: Boolean = true) repeatable on OBJECT | INTERFACE

"Links definitions within the document to external schemas."
directive @link("Gets imported specification url." url: String! "Gets optional list of imported element names." import: [String!]) repeatable on SCHEMA
directive @link(
"Gets imported specification url."
url: String!
"Gets optional list of imported element names."
import: [String!]
) repeatable on SCHEMA

"Scalar representing a set of fields."
scalar FieldSet
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
schema @link(url: "https://specs.apollo.dev/federation/v2.6", import: ["@key", "@tag", "FieldSet"]) {
schema
@link(url: "https://specs.apollo.dev/federation/v2.6", import: ["@key", "@tag", "FieldSet"]) {
query: QueryOfTestTypeClassDirective
}

Expand All @@ -12,7 +13,8 @@ type QueryOfTestTypeClassDirective {
_entities(representations: [_Any!]!): [_Entity]!
}

type TestTypeClassDirective implements ITestTypeInterfaceDirective @key(fields: "id") {
type TestTypeClassDirective implements ITestTypeInterfaceDirective
@key(fields: "id") {
id: Int!
}

Expand All @@ -25,10 +27,15 @@ type _Service {
union _Entity = TestTypeClassDirective

"Used to indicate a combination of fields that can be used to uniquely identify and fetch an object or interface."
directive @key(fields: FieldSet! resolvable: Boolean = true) repeatable on OBJECT | INTERFACE
directive @key(fields: FieldSet!, resolvable: Boolean = true) repeatable on OBJECT | INTERFACE

"Links definitions within the document to external schemas."
directive @link("Gets imported specification url." url: String! "Gets optional list of imported element names." import: [String!]) repeatable on SCHEMA
directive @link(
"Gets imported specification url."
url: String!
"Gets optional list of imported element names."
import: [String!]
) repeatable on SCHEMA

"Scalar representing a set of fields."
scalar FieldSet
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
schema @link(url: "https://specs.apollo.dev/federation/v2.6", import: ["@key", "@tag", "FieldSet"]) {
schema
@link(url: "https://specs.apollo.dev/federation/v2.6", import: ["@key", "@tag", "FieldSet"]) {
query: Query
}

Expand Down Expand Up @@ -27,10 +28,15 @@ type _Service {
union _Entity = TestType

"Used to indicate a combination of fields that can be used to uniquely identify and fetch an object or interface."
directive @key(fields: FieldSet! resolvable: Boolean = true) repeatable on OBJECT | INTERFACE
directive @key(fields: FieldSet!, resolvable: Boolean = true) repeatable on OBJECT | INTERFACE

"Links definitions within the document to external schemas."
directive @link("Gets imported specification url." url: String! "Gets optional list of imported element names." import: [String!]) repeatable on SCHEMA
directive @link(
"Gets imported specification url."
url: String!
"Gets optional list of imported element names."
import: [String!]
) repeatable on SCHEMA

"Scalar representing a set of fields."
scalar FieldSet
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
schema @link(url: "https://specs.apollo.dev/federation/v2.6", import: ["@key", "@tag", "FieldSet"]) {
schema
@link(url: "https://specs.apollo.dev/federation/v2.6", import: ["@key", "@tag", "FieldSet"]) {
query: QueryOfTestTypeClassDirective
}

Expand All @@ -21,10 +22,15 @@ type _Service {
union _Entity = TestTypeClassDirective

"Used to indicate a combination of fields that can be used to uniquely identify and fetch an object or interface."
directive @key(fields: FieldSet! resolvable: Boolean = true) repeatable on OBJECT | INTERFACE
directive @key(fields: FieldSet!, resolvable: Boolean = true) repeatable on OBJECT | INTERFACE

"Links definitions within the document to external schemas."
directive @link("Gets imported specification url." url: String! "Gets optional list of imported element names." import: [String!]) repeatable on SCHEMA
directive @link(
"Gets imported specification url."
url: String!
"Gets optional list of imported element names."
import: [String!]
) repeatable on SCHEMA

"Scalar representing a set of fields."
scalar FieldSet
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
schema @link(url: "https://specs.apollo.dev/federation/v2.6", import: ["@key", "@tag", "FieldSet"]) {
schema
@link(url: "https://specs.apollo.dev/federation/v2.6", import: ["@key", "@tag", "FieldSet"]) {
query: Query
}

Expand All @@ -22,10 +23,15 @@ type _Service {
union _Entity = TestType

"Used to indicate a combination of fields that can be used to uniquely identify and fetch an object or interface."
directive @key(fields: FieldSet! resolvable: Boolean = true) repeatable on OBJECT | INTERFACE
directive @key(fields: FieldSet!, resolvable: Boolean = true) repeatable on OBJECT | INTERFACE

"Links definitions within the document to external schemas."
directive @link("Gets imported specification url." url: String! "Gets optional list of imported element names." import: [String!]) repeatable on SCHEMA
directive @link(
"Gets imported specification url."
url: String!
"Gets optional list of imported element names."
import: [String!]
) repeatable on SCHEMA

"Scalar representing a set of fields."
scalar FieldSet
Expand Down
Loading
Loading