github.com/matiasanaya/gqlgen@v0.6.0/example/dataloader/schema.graphql (about)

     1  type Query {
     2      customers: [Customer!]
     3  
     4      # these methods are here to test code generation of nested arrays
     5      torture1d(customerIds: [Int!]): [Customer!]
     6      torture2d(customerIds: [[Int!]]): [[Customer!]]
     7  }
     8  
     9  type Customer {
    10      id: Int!
    11      name: String!
    12      address: Address
    13      orders: [Order!]
    14  }
    15  
    16  type Address {
    17      id: Int!
    18      street: String!
    19      country: String!
    20  }
    21  
    22  type Order {
    23      id: Int!
    24      date: Time!
    25      amount: Float!
    26      items: [Item!]
    27  }
    28  
    29  type Item {
    30      name: String!
    31  }
    32  scalar Time