-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathreadme.txt
76 lines (70 loc) · 931 Bytes
/
readme.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
1. Signup Payload:
mutation {
signup(
name: "XYZ"
email: "[email protected]"
password: "xyz"
) {
token
user {
id
}
}
}
2. Login payload:
mutation {
login(
email: "[email protected]"
password: ""
) {
token
user {
email
links {
url
description
}
}
}
}
3. Adding data into database POST
mutation {
post(
url: "www.graphqlweekly2.com"
description: "Curated2 GraphQL content coming to your email inbox every Friday"
) {
id
}
}
4. Subscription of data to listen message
subscription {
newLink {
id
url
description
postedBy {
id
name
email
}
}
}
5. pagination
query {
feed (skip:0, first: 2){
count
links {
id
description
url
}
}
}
6. Sorting
query {
feed(orderBy: createdAt_ASC) {
id
description
url
}
}