Skip to content

Commit

Permalink
edits
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelstaib committed Jan 17, 2024
1 parent 6b4edfc commit fa67b7f
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 24 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
schema @link(url: "https:\/\/specs.apollo.dev\/federation\/v2.0", import: [ "@extends", "@key", "@provides", "FieldSet", "@external" ]) {
schema @link(url: "https:\/\/specs.apollo.dev\/federation\/v2.0", import: [ "@key", "@provides", "FieldSet", "@external" ]) {
query: Query
}

Expand All @@ -20,13 +20,13 @@ type ProductVariation {
id: ID!
}

type Query @extends {
type Query {
product(id: ID!): Product
_service: _Service!
_entities(representations: [_Any!]!): [_Entity]!
}

type User @key(fields: "email") @extends {
type User @key(fields: "email") {
email: ID! @external
totalProductsCreated: Int @external
}
Expand All @@ -39,9 +39,6 @@ type _Service {
"Union of all types that key directive applied. This information is needed by the Apollo federation gateway."
union _Entity = Product | User

"Directive to indicate that marks target object as extending part of the federated schema."
directive @extends on OBJECT | INTERFACE

"Directive to indicate that a field is owned by another service, for example via Apollo federation."
directive @external on FIELD_DEFINITION

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
schema @link(url: "https:\/\/specs.apollo.dev\/federation\/v2.0", import: [ "@extends", "@key", "@provides", "FieldSet", "@external" ]) {
schema @link(url: "https:\/\/specs.apollo.dev\/federation\/v2.0", import: [ "@key", "@provides", "FieldSet", "@external" ]) {
query: Query
}

Expand All @@ -20,13 +20,13 @@ type ProductVariation {
id: ID!
}

type Query @extends {
type Query {
product(id: ID!): Product
_service: _Service!
_entities(representations: [_Any!]!): [_Entity]!
}

type User @key(fields: "email") @extends {
type User @key(fields: "email") {
email: ID! @external
totalProductsCreated: Int @external
}
Expand All @@ -39,9 +39,6 @@ type _Service {
"Union of all types that key directive applied. This information is needed by the Apollo federation gateway."
union _Entity = Product | User

"Directive to indicate that marks target object as extending part of the federated schema."
directive @extends on OBJECT | INTERFACE

"Directive to indicate that a field is owned by another service, for example via Apollo federation."
directive @external on FIELD_DEFINITION

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
schema @link(url: "https:\/\/specs.apollo.dev\/federation\/v2.0", import: [ "@extends", "@key", "@provides", "@external", "FieldSet" ]) {
schema @link(url: "https:\/\/specs.apollo.dev\/federation\/v2.0", import: [ "@key", "@provides", "@external", "FieldSet" ]) {
query: Query
}

Expand All @@ -20,13 +20,13 @@ type ProductVariation {
id: ID!
}

type Query @extends {
type Query {
product(id: ID!): Product
_service: _Service!
_entities(representations: [_Any!]!): [_Entity]!
}

type User @extends @key(fields: "email") {
type User @key(fields: "email") {
email: ID! @external
totalProductsCreated: Int @external
}
Expand All @@ -39,9 +39,6 @@ type _Service {
"Union of all types that key directive applied. This information is needed by the Apollo federation gateway."
union _Entity = Product | User

"Directive to indicate that marks target object as extending part of the federated schema."
directive @extends on OBJECT | INTERFACE

"Directive to indicate that a field is owned by another service, for example via Apollo federation."
directive @external on FIELD_DEFINITION

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
schema @link(url: "https:\/\/specs.apollo.dev\/federation\/v2.0", import: [ "@extends", "@key", "@provides", "@external", "FieldSet" ]) {
schema @link(url: "https:\/\/specs.apollo.dev\/federation\/v2.0", import: [ "@key", "@provides", "@external", "FieldSet" ]) {
query: Query
}

Expand All @@ -20,13 +20,13 @@ type ProductVariation {
id: ID!
}

type Query @extends {
type Query {
product(id: ID!): Product
_service: _Service!
_entities(representations: [_Any!]!): [_Entity]!
}

type User @extends @key(fields: "email") {
type User @key(fields: "email") {
email: ID! @external
totalProductsCreated: Int @external
}
Expand All @@ -39,9 +39,6 @@ type _Service {
"Union of all types that key directive applied. This information is needed by the Apollo federation gateway."
union _Entity = Product | User

"Directive to indicate that marks target object as extending part of the federated schema."
directive @extends on OBJECT | INTERFACE

"Directive to indicate that a field is owned by another service, for example via Apollo federation."
directive @external on FIELD_DEFINITION

Expand Down

0 comments on commit fa67b7f

Please sign in to comment.