...

Text file src/github.com/99designs/gqlgen/api/testdata/default/graph/schema.graphqls

Documentation: github.com/99designs/gqlgen/api/testdata/default/graph

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

View as plain text