diff --git a/plugin/federation/testdata/computedrequires/schema.graphql b/plugin/federation/testdata/computedrequires/schema.graphql index 127e6e10f9f..43567d04cfc 100644 --- a/plugin/federation/testdata/computedrequires/schema.graphql +++ b/plugin/federation/testdata/computedrequires/schema.graphql @@ -16,6 +16,22 @@ type World @key(fields: "hello { name } foo ") { hello: Hello } +type Person @key(fields: "name"){ + name: String! + gender: Gender! + welcomeMessage: String @requires(fields:"gender { ... on Male {description} ... on Female {description}}") +} + +union Gender = Male | Female + +type Male { + description: String! +} + +type Female { + description: String! +} + type WorldWithMultipleKeys @key(fields: "hello { name } foo ") @key(fields: "bar") { foo: String! bar: Int!