From fa67b7ff11d367f232e1788ebff86c188bc40969 Mon Sep 17 00:00:00 2001 From: Michael Staib Date: Wed, 17 Jan 2024 22:55:54 +0100 Subject: [PATCH] edits --- .../CertificationTests.Schema_Snapshot.snap | 9 +++------ .../__snapshots__/CertificationTests.Subgraph_SDL.snap | 9 +++------ .../CertificationTests.Schema_Snapshot.snap | 9 +++------ .../__snapshots__/CertificationTests.Subgraph_SDL.snap | 9 +++------ 4 files changed, 12 insertions(+), 24 deletions(-) diff --git a/src/HotChocolate/ApolloFederation/test/ApolloFederation.Tests/CertificationSchema/AnnotationBased/__snapshots__/CertificationTests.Schema_Snapshot.snap b/src/HotChocolate/ApolloFederation/test/ApolloFederation.Tests/CertificationSchema/AnnotationBased/__snapshots__/CertificationTests.Schema_Snapshot.snap index c3e4cb2890b..5430dbe40ec 100644 --- a/src/HotChocolate/ApolloFederation/test/ApolloFederation.Tests/CertificationSchema/AnnotationBased/__snapshots__/CertificationTests.Schema_Snapshot.snap +++ b/src/HotChocolate/ApolloFederation/test/ApolloFederation.Tests/CertificationSchema/AnnotationBased/__snapshots__/CertificationTests.Schema_Snapshot.snap @@ -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 } @@ -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 } @@ -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 diff --git a/src/HotChocolate/ApolloFederation/test/ApolloFederation.Tests/CertificationSchema/AnnotationBased/__snapshots__/CertificationTests.Subgraph_SDL.snap b/src/HotChocolate/ApolloFederation/test/ApolloFederation.Tests/CertificationSchema/AnnotationBased/__snapshots__/CertificationTests.Subgraph_SDL.snap index c3e4cb2890b..5430dbe40ec 100644 --- a/src/HotChocolate/ApolloFederation/test/ApolloFederation.Tests/CertificationSchema/AnnotationBased/__snapshots__/CertificationTests.Subgraph_SDL.snap +++ b/src/HotChocolate/ApolloFederation/test/ApolloFederation.Tests/CertificationSchema/AnnotationBased/__snapshots__/CertificationTests.Subgraph_SDL.snap @@ -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 } @@ -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 } @@ -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 diff --git a/src/HotChocolate/ApolloFederation/test/ApolloFederation.Tests/CertificationSchema/CodeFirst/__snapshots__/CertificationTests.Schema_Snapshot.snap b/src/HotChocolate/ApolloFederation/test/ApolloFederation.Tests/CertificationSchema/CodeFirst/__snapshots__/CertificationTests.Schema_Snapshot.snap index 3fde4975778..a46f907f22c 100644 --- a/src/HotChocolate/ApolloFederation/test/ApolloFederation.Tests/CertificationSchema/CodeFirst/__snapshots__/CertificationTests.Schema_Snapshot.snap +++ b/src/HotChocolate/ApolloFederation/test/ApolloFederation.Tests/CertificationSchema/CodeFirst/__snapshots__/CertificationTests.Schema_Snapshot.snap @@ -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 } @@ -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 } @@ -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 diff --git a/src/HotChocolate/ApolloFederation/test/ApolloFederation.Tests/CertificationSchema/CodeFirst/__snapshots__/CertificationTests.Subgraph_SDL.snap b/src/HotChocolate/ApolloFederation/test/ApolloFederation.Tests/CertificationSchema/CodeFirst/__snapshots__/CertificationTests.Subgraph_SDL.snap index 3fde4975778..a46f907f22c 100644 --- a/src/HotChocolate/ApolloFederation/test/ApolloFederation.Tests/CertificationSchema/CodeFirst/__snapshots__/CertificationTests.Subgraph_SDL.snap +++ b/src/HotChocolate/ApolloFederation/test/ApolloFederation.Tests/CertificationSchema/CodeFirst/__snapshots__/CertificationTests.Subgraph_SDL.snap @@ -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 } @@ -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 } @@ -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