github.com/fortexxx/gqlgen@v0.10.3-0.20191216030626-ca5ea8b21ead/example/config/schema.graphql (about) 1 directive @goModel(model: String, models: [String!]) on OBJECT | INPUT_OBJECT | SCALAR | ENUM | INTERFACE | UNION 2 directive @goField(forceResolver: Boolean, name: String) on INPUT_FIELD_DEFINITION | FIELD_DEFINITION 3 4 type Query { 5 todos: [Todo!]! 6 } 7 8 type Mutation { 9 createTodo(input: NewTodo!): Todo! 10 }