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

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