Debian Codegraph @

example/enum/schema.graphql

raw
1 type Query {
2 """
3 Returns the current state.
4 """
5 state: State!
6 }
7
8 type Mutation {
9 """
10 Changes the state and returns the new state.
11 """
12 state(state: State!): State!
13 }
14
15 """
16 State holds the possible task states.
17 """
18 enum State {
19 "Backlog indicates that a task is in the backlog and needs to be triaged."
20 BACKLOG
21 "Todo means that a task is ready to be worked on."
22 TODO
23 "INPROG means that a task is currently in progress."
24 INPROG
25 "Done means that a task is finished."
26 DONE
27 }