github.com/kerryoscer/gqlgen@v0.17.29/plugin/federation/testdata/allthethings/schema.graphql (about)

     1  type Hello @key(fields: "name") {
     2      name: String!
     3      secondary: String!
     4  }
     5  
     6  type World @key(fields: " foo   ") @key(fields: "bar") {
     7      foo: String!
     8      bar: Int!
     9  }
    10  
    11  extend type ExternalExtension @key(fields: "  upc    ") {
    12      upc: String! @external
    13      reviews: [World]
    14  }
    15  
    16  extend type NestedKey @key(fields: "id hello { name}") {
    17      id: String! @external
    18      hello: Hello
    19  }
    20  
    21  extend type MoreNesting @key(fields: "id") {
    22      id: String! @external
    23      world: World! @external
    24  }
    25  
    26  extend type VeryNestedKey
    27      @key(
    28          fields: "id hello { name} world {foo } world{bar}  more { world { foo }}"
    29      ) {
    30      id: String! @external
    31      hello: Hello
    32      world: World
    33      nested: NestedKey @requires(fields: "id hello {secondary }")
    34      more: MoreNesting
    35  }
    36  
    37  type Query {
    38      hello: Hello!
    39      world: World!
    40  }