From d7f48be8e029341c23237a6898a3122de4ff695a Mon Sep 17 00:00:00 2001 From: Michael Staib Date: Thu, 28 Mar 2024 15:41:25 +0100 Subject: [PATCH] Added more test cases --- .../basic-interface-usage/{ => composite}/a.graphql | 2 +- .../basic-interface-usage/composite/b.graphql | 13 +++++++++++++ .../{ => federation}/_supergraph.graphql | 0 .../basic-interface-usage/federation/a.graphql | 8 ++++++++ .../{ => federation}/b.graphql | 0 5 files changed, 22 insertions(+), 1 deletion(-) rename rfcs/test-cases/basic-interface-usage/{ => composite}/a.graphql (56%) create mode 100644 rfcs/test-cases/basic-interface-usage/composite/b.graphql rename rfcs/test-cases/basic-interface-usage/{ => federation}/_supergraph.graphql (100%) create mode 100644 rfcs/test-cases/basic-interface-usage/federation/a.graphql rename rfcs/test-cases/basic-interface-usage/{ => federation}/b.graphql (100%) diff --git a/rfcs/test-cases/basic-interface-usage/a.graphql b/rfcs/test-cases/basic-interface-usage/composite/a.graphql similarity index 56% rename from rfcs/test-cases/basic-interface-usage/a.graphql rename to rfcs/test-cases/basic-interface-usage/composite/a.graphql index 9f644ef..e4fe305 100644 --- a/rfcs/test-cases/basic-interface-usage/a.graphql +++ b/rfcs/test-cases/basic-interface-usage/composite/a.graphql @@ -2,7 +2,7 @@ type Query { a: String } -extend interface Node @key(fields: "id") { +interface Node @key(fields: "id") { id: ID! name: String } diff --git a/rfcs/test-cases/basic-interface-usage/composite/b.graphql b/rfcs/test-cases/basic-interface-usage/composite/b.graphql new file mode 100644 index 0000000..7d96228 --- /dev/null +++ b/rfcs/test-cases/basic-interface-usage/composite/b.graphql @@ -0,0 +1,13 @@ +type Query { + b: String + node(id: ID!): Node @lookup +} + +interface Node { + id: ID! +} + +type User implements Node @key(fields: "id") { + id: ID! + name: String +} diff --git a/rfcs/test-cases/basic-interface-usage/_supergraph.graphql b/rfcs/test-cases/basic-interface-usage/federation/_supergraph.graphql similarity index 100% rename from rfcs/test-cases/basic-interface-usage/_supergraph.graphql rename to rfcs/test-cases/basic-interface-usage/federation/_supergraph.graphql diff --git a/rfcs/test-cases/basic-interface-usage/federation/a.graphql b/rfcs/test-cases/basic-interface-usage/federation/a.graphql new file mode 100644 index 0000000..e4fe305 --- /dev/null +++ b/rfcs/test-cases/basic-interface-usage/federation/a.graphql @@ -0,0 +1,8 @@ +type Query { + a: String +} + +interface Node @key(fields: "id") { + id: ID! + name: String +} diff --git a/rfcs/test-cases/basic-interface-usage/b.graphql b/rfcs/test-cases/basic-interface-usage/federation/b.graphql similarity index 100% rename from rfcs/test-cases/basic-interface-usage/b.graphql rename to rfcs/test-cases/basic-interface-usage/federation/b.graphql