...

Text file src/github.com/99designs/gqlgen/plugin/federation/testdata/allthethings/schema.graphql

Documentation: github.com/99designs/gqlgen/plugin/federation/testdata/allthethings

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

View as plain text