Server spec:
- Runs on port 8081
- Implements the following schema
type Query {
todos(status: Status): [Todo]
}
type Mutation {
createTodo(todo: TodoInput!): Todo
updateTodo(id: String!, todo: TodoUpdateInput!): Todo
}
type Todo {
createdAt: String!
id: String!
status: Status!
text: String!
}
enum Status {
ACTIVE
COMPLETED
ARCHIVED
}
input TodoInput {
status: Status!
text: String!
}
input TodoUpdateInput {
status: Status
text: String
}
- Hosts an instance of GraphiQL or GraphQL Playground to explore graph
- Is stateful for as long as the server lives