-
Notifications
You must be signed in to change notification settings - Fork 0
/
O-task.graphql
59 lines (52 loc) · 1017 Bytes
/
O-task.graphql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
type Task {
id: ID!
title: String!
description: String
status: String!
parent_id: Float
childTasks: [Task!]
createdAt: DateTime!
}
type User {
id: ID!
email: String!
name: String!
createdAt: DateTime
token: String
}
"""
The javascript `Date` as string. Type represents date and time as the ISO Date string.
"""
scalar DateTime
type Query {
tasks: [Task!]!
getTask(id: String!): [Task!]!
checkDone(id: String!): Task!
search(Query: String!): [Task!]!
}
type Mutation {
createTask(taskData: NewTaskInput!): Task!
updateTask(edits: UpdateTaskInput!, id: String!): Task!
deleteTask(id: String!): Task!
signUp(data: NewUserInput!): User!
signIn(data: SignInInput!): User!
}
input NewTaskInput {
title: String!
description: String
parent_id: Float
}
input UpdateTaskInput {
title: String
description: String
parent_id: Float
}
input NewUserInput {
email: String!
password: String!
name: String!
}
input SignInInput {
email: String!
password: String!
}