-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsampleMutations.txt
83 lines (77 loc) · 1.03 KB
/
sampleMutations.txt
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
User Signup
mutation{
createUser(firstName:"abhishek",lastName:"kumkar,"
about:"i'm 4th year studemt",username:"avk2",password:"helloji&",confirmPassword:"helloji&",email:"av2k@gmail.com"){
user{
id
firstName
lastName
username
about
password
rating
}
}
}
Create Tag
mutation{
createTags(name:"abhishek"){
tag{
id
name
}
errors
}
}
Update Tag
mutation{
updateTag(id:1,name:"first"){
tag{
id
name
}
errors
}
}
Delete Tag
mutation{
deleteTags(id:6){
errors
}
}
Create Question
mutation{
createQuestion(question:"hello",tags:[1,2,3]) {
ques{
id
question
timestamp
author{
id
username
}
}
errors
}
}
Update Question
mutation{
updateQuestion(id:2,question:"hello",tags:[1,2,3]) {
ques{
id
question
timestamp
author{
id
username
}
}
errors
}
}
Delete Question
mutation{
deleteQuestion(id:2){
errors
}
}