You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
exports[`connectionResolver "Relay Cursor Connections Specification (Pagination algorithm)": ApplyCursorsToEdges(allEdges, before, after): should throw error if \`last\` is less than 0 1`] =`[Error: Argument \`last\` should be non-negative number.]`;
6
6
7
+
exports[`connectionResolver edges with data correctly handles filtering 1`] =`
8
+
Object {
9
+
"count": 1,
10
+
"edges": Array [
11
+
Object {
12
+
"cursor": "MA==",
13
+
"id": 1,
14
+
"node": Object {
15
+
"age": 12,
16
+
"gender": "m",
17
+
"id": 2,
18
+
"name": "user02",
19
+
},
20
+
"otherUserId": 2,
21
+
"type": "likes",
22
+
"userId": 1,
23
+
},
24
+
],
25
+
"pageInfo": Object {
26
+
"endCursor": "MA==",
27
+
"hasNextPage": false,
28
+
"hasPreviousPage": false,
29
+
"startCursor": "MA==",
30
+
},
31
+
}
32
+
`;
33
+
34
+
exports[`connectionResolver edges with data correctly resolves with edges 1`] =`
35
+
Object {
36
+
"count": 2,
37
+
"edges": Array [
38
+
Object {
39
+
"cursor": "MA==",
40
+
"id": 1,
41
+
"node": Object {
42
+
"age": 12,
43
+
"gender": "m",
44
+
"id": 2,
45
+
"name": "user02",
46
+
},
47
+
"otherUserId": 2,
48
+
"type": "likes",
49
+
"userId": 1,
50
+
},
51
+
Object {
52
+
"cursor": "MQ==",
53
+
"id": 2,
54
+
"node": Object {
55
+
"age": 11,
56
+
"gender": "m",
57
+
"id": 1,
58
+
"name": "user01",
59
+
},
60
+
"otherUserId": 1,
61
+
"type": "dislikes",
62
+
"userId": 2,
63
+
},
64
+
],
65
+
"pageInfo": Object {
66
+
"endCursor": "MQ==",
67
+
"hasNextPage": false,
68
+
"hasPreviousPage": false,
69
+
"startCursor": "MA==",
70
+
},
71
+
}
72
+
`;
73
+
7
74
exports[`connectionResolver fallback logic (offset in cursor) should throw error if \`first\` is less than 0 1`] =`[Error: Argument \`first\` should be non-negative number.]`;
8
75
9
76
exports[`connectionResolver fallback logic (offset in cursor) should throw error if \`last\` is less than 0 1`] =`[Error: Argument \`last\` should be non-negative number.]`;
0 commit comments