-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathqueries.graphql
105 lines (95 loc) · 1.6 KB
/
queries.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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
mutation CreateDeck {
createDeck(
input: {title: "GraphQL", description: "Learning GraphQL", isPublic: true, cards: [{title: "In which language is GraphQL written in?", answers: [{text: "Rust", isCorrect: false}, {text: "It is some sort of pseudoprotocol/pattern, not a project", isCorrect: true}]}]}
) {
deck {
id
title
description
cards {
id
title
answers {
id
text
isCorrect
}
}
}
}
}
mutation DeleteDeck {
deleteDeck(id: "4ba0b78e-e81d-4662-beea-dae70a844766") {
success
}
}
query GetDeck{
deck(id: "3327efc8-b5e2-45b2-a13f-bdb1a896f7e4"){
id
title
description
cards {
id
title
answers {
id
text
isCorrect
}
}
}
}
query GetPopularDecks {
popularDecks(first:10){
edges {
node {
id
title
description
cards {
id
title
answers {
id
text
isCorrect
}
}
}
cursor
}
pageInfo {
hasPreviousPage
hasNextPage
startCursor
endCursor
}
}
}
query GetPopularDecks {
popularDecks(first:1, after: "3a272c54-4255-4518-8abf-1c9222c12a00"){
edges {
node {
id
title
description
cards {
id
title
answers {
id
text
isCorrect
}
}
}
cursor
}
pageInfo {
hasPreviousPage
hasNextPage
startCursor
endCursor
}
}
}