github.com/Kartograf/gqlgen@v0.7.2/example/type-system-extension/schemas/schema.graphql (about) 1 # GraphQL schema example 2 # 3 # https://gqlgen.com/getting-started/ 4 5 schema { 6 query: MyQuery 7 } 8 9 interface Node { 10 id: ID! 11 } 12 13 type Todo implements Node { 14 id: ID! 15 text: String! 16 state: State! 17 } 18 19 type MyQuery { 20 todos: [Todo!]! 21 } 22 23 union Data = Todo 24 25 enum State { 26 NOT_YET 27 DONE 28 }