-
-
Notifications
You must be signed in to change notification settings - Fork 129
/
mutation-delete.graphql
82 lines (78 loc) · 2.33 KB
/
mutation-delete.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
mutation {
a: deletePost(input: { nodeId: "WyJwb3N0cyIsMV0=" }) { ...deletePostPayload }
b: deletePost(input: { nodeId: "WyJwb3N0cyIsMl0=", clientMutationId: "hello" }) { ...deletePostPayload }
c: deletePost(input: { nodeId: "WyJwb3N0cyIsMjAwMF0=" }) { ...deletePostPayload }
d: deletePost(input: { nodeId: "WyJwb3N0cyIsM10=", clientMutationId: "world" }) { ...deletePostPayload }
d2: deleteTypeById(input: { id: 11, clientMutationId: "throw error" }) { clientMutationId deletedTypeId }
e: deletePostById(input: { id: 6 }) { ...deletePostPayload }
f: deletePostById(input: { id: 9, clientMutationId: "hello" }) { ...deletePostPayload }
g: deletePostById(input: { id: 2000 }) { ...deletePostPayload }
h: deletePostById(input: { id: 11, clientMutationId: "world" }) { ...deletePostPayload }
i: deleteCompoundKey(input: { nodeId: "WyJjb21wb3VuZF9rZXlzIiw0LDNd" }) { ...deleteCompoundKeyPayload }
j: deleteCompoundKeyByPersonId1AndPersonId2(input: { personId1: 2, personId2:3 }) { ...deleteCompoundKeyPayload }
k: deletePersonByEmail(input: { email: "budd.deey@email.com" }) { ...deletePersonPayload }
l: deletePersonByEmail(input: { email: "graphile-build.issue.27.exists@example.com" }) { ...deletePersonPayload2 }
m: deletePersonById(input: { id: 1 }) { ...deletePersonPayloadWithEdge }
}
fragment deletePostPayload on DeletePostPayload {
clientMutationId
deletedPostId
post {
nodeId
id
headline
authorId
}
query { nodeId }
}
fragment deleteCompoundKeyPayload on DeleteCompoundKeyPayload {
clientMutationId
deletedCompoundKeyId
compoundKey {
nodeId
personId1
personId2
personByPersonId1 {
nodeId
name
}
personByPersonId2 {
nodeId
name
}
}
query { nodeId }
}
fragment deletePersonPayload on DeletePersonPayload {
clientMutationId
deletedPersonId
query { nodeId }
}
fragment deletePersonPayload2 on DeletePersonPayload {
clientMutationId
deletedPersonId
person {
nodeId
id
name
email
issue27UserExists: exists(email: "graphile-build.issue.27.exists@example.com")
}
query { nodeId }
}
fragment deletePersonPayloadWithEdge on DeletePersonPayload {
clientMutationId
deletedPersonId
personEdge(orderBy: FIRST_NAME_ASC) {
cursor
node {
firstName
id
nodeId
email
}
}
query {
nodeId
}
}