mirror of
https://github.com/sergeyyarkov/todo-app.git
synced 2026-10-11 02:19:04 +03:00
19 lines
417 B
JavaScript
19 lines
417 B
JavaScript
import gql from 'graphql-tag'
|
|
|
|
const CREATE_TODO = gql`
|
|
mutation CreateTodo($title: String! $description: String! $deadline: String! $categoryId: String!) {
|
|
createTodo(title: $title description: $description deadline: $deadline categoryId: $categoryId) {
|
|
id
|
|
title
|
|
description
|
|
status
|
|
deadline
|
|
category {
|
|
id
|
|
title
|
|
}
|
|
}
|
|
}
|
|
`
|
|
|
|
export default CREATE_TODO |