github.com/niko0xdev/gqlgen@v0.17.55-0.20240120102243-2ecff98c3e37/api/testdata/default/graph/schema.graphqls (about)

     1  # GraphQL schema example
     2  #
     3  # https://gqlgen.com/getting-started/
     4  
     5  type Todo {
     6    id: ID!
     7    text: String!
     8    done: Boolean!
     9    user: User!
    10  }
    11  
    12  type User {
    13    id: ID!
    14    name: String!
    15  }
    16  
    17  type Query {
    18    todos: [Todo!]!
    19  }
    20  
    21  input NewTodo {
    22    text: String!
    23    userId: String!
    24  }
    25  
    26  type Mutation {
    27    createTodo(input: NewTodo!): Todo!
    28  }