react_template/schema.graphql
2020-10-30 14:41:08 +01:00

61 lines
1 KiB
GraphQL

# This file was generated based on ".graphqlconfig". Do not edit manually.
schema {
query: TodoQuery
mutation: Mutations
}
type CloseTodo {
todo: TodoType
}
type CreateTodo {
todo: TodoType
}
type DeleteTodo {
todo: TodoType
}
type Mutations {
closeTodo(todoId: String!): CloseTodo
createTodo(title: String = ""): CreateTodo
deleteTodo(todoId: String!): DeleteTodo
updateTodo(todo: TodoInputType): UpdateTodo
}
type TodoListResponseField {
errorMessage: String
isSuccess: Boolean
todos: [TodoType]
}
"Defines the query and how to interact with"
type TodoQuery {
getTodo(todoId: String!): TodoResponseField
listTodos: TodoListResponseField
}
type TodoResponseField {
errorMessage: String
isSuccess: Boolean
todo: TodoType
}
"Query Object Type"
type TodoType {
isDone: Boolean
title: String
todoId: String
}
type UpdateTodo {
todo: TodoType
}
"Mutation Input Object Type"
input TodoInputType {
isDone: Boolean = false
title: String = ""
todoId: String
}