@contember/client-content 2.0.0-alpha.32 → 2.0.0-alpha.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/development/src/ContentClient.cjs.map +1 -1
- package/dist/development/src/ContentClient.js.map +1 -1
- package/dist/development/src/ContentQueryBuilder.cjs.map +1 -1
- package/dist/development/src/ContentQueryBuilder.js.map +1 -1
- package/dist/development/src/nodes/ContentEntitySelection.cjs.map +1 -1
- package/dist/development/src/nodes/ContentEntitySelection.js.map +1 -1
- package/dist/development/src/nodes/ContentOperation.cjs.map +1 -1
- package/dist/development/src/nodes/ContentOperation.js.map +1 -1
- package/dist/development/src/utils/ContentOperationSet.cjs.map +1 -1
- package/dist/development/src/utils/ContentOperationSet.js.map +1 -1
- package/dist/development/src/utils/createListArgs.cjs.map +1 -1
- package/dist/development/src/utils/createListArgs.js.map +1 -1
- package/dist/development/src/utils/createMutationOperationSet.cjs.map +1 -1
- package/dist/development/src/utils/createMutationOperationSet.js.map +1 -1
- package/dist/development/src/utils/createQueryOperationSet.cjs.map +1 -1
- package/dist/development/src/utils/createQueryOperationSet.js.map +1 -1
- package/dist/development/src/utils/createTypedArgs.cjs.map +1 -1
- package/dist/development/src/utils/createTypedArgs.js.map +1 -1
- package/dist/development/src/utils/mutationFragments.cjs.map +1 -1
- package/dist/development/src/utils/mutationFragments.js.map +1 -1
- package/dist/production/src/ContentClient.cjs.map +1 -1
- package/dist/production/src/ContentClient.js.map +1 -1
- package/dist/production/src/ContentQueryBuilder.cjs.map +1 -1
- package/dist/production/src/ContentQueryBuilder.js.map +1 -1
- package/dist/production/src/nodes/ContentEntitySelection.cjs.map +1 -1
- package/dist/production/src/nodes/ContentEntitySelection.js.map +1 -1
- package/dist/production/src/nodes/ContentOperation.cjs.map +1 -1
- package/dist/production/src/nodes/ContentOperation.js.map +1 -1
- package/dist/production/src/utils/ContentOperationSet.cjs.map +1 -1
- package/dist/production/src/utils/ContentOperationSet.js.map +1 -1
- package/dist/production/src/utils/createListArgs.cjs.map +1 -1
- package/dist/production/src/utils/createListArgs.js.map +1 -1
- package/dist/production/src/utils/createMutationOperationSet.cjs.map +1 -1
- package/dist/production/src/utils/createMutationOperationSet.js.map +1 -1
- package/dist/production/src/utils/createQueryOperationSet.cjs.map +1 -1
- package/dist/production/src/utils/createQueryOperationSet.js.map +1 -1
- package/dist/production/src/utils/createTypedArgs.cjs.map +1 -1
- package/dist/production/src/utils/createTypedArgs.js.map +1 -1
- package/dist/production/src/utils/mutationFragments.cjs.map +1 -1
- package/dist/production/src/utils/mutationFragments.js.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +6 -6
- package/tests/cases/unit/__snapshots__/mutation.test.ts.snap +1198 -0
- package/tests/cases/unit/__snapshots__/query.test.ts.snap +102 -0
- package/tests/cases/unit/mutation.test.ts +244 -1199
- package/tests/cases/unit/query.test.ts +55 -124
- package/tests/cases/unit/types.test.ts +3 -2
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
// Bun Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
+
|
|
3
|
+
exports[`queries list 1`] = `
|
|
4
|
+
"query {
|
|
5
|
+
\tauthors: listAuthor {
|
|
6
|
+
\t\tid
|
|
7
|
+
\t\tname
|
|
8
|
+
\t\temail
|
|
9
|
+
\t}
|
|
10
|
+
}
|
|
11
|
+
"
|
|
12
|
+
`;
|
|
13
|
+
|
|
14
|
+
exports[`queries multiple queries 1`] = `
|
|
15
|
+
"query {
|
|
16
|
+
\tauthors: listAuthor {
|
|
17
|
+
\t\tid
|
|
18
|
+
\t\tname
|
|
19
|
+
\t\temail
|
|
20
|
+
\t}
|
|
21
|
+
\tposts: listPost {
|
|
22
|
+
\t\tid
|
|
23
|
+
\t\tpublishedAt
|
|
24
|
+
\t}
|
|
25
|
+
}
|
|
26
|
+
"
|
|
27
|
+
`;
|
|
28
|
+
|
|
29
|
+
exports[`queries single query 1`] = `
|
|
30
|
+
"query {
|
|
31
|
+
\tvalue: listPost {
|
|
32
|
+
\t\tid
|
|
33
|
+
\t\tpublishedAt
|
|
34
|
+
\t}
|
|
35
|
+
}
|
|
36
|
+
"
|
|
37
|
+
`;
|
|
38
|
+
|
|
39
|
+
exports[`queries nested object 1`] = `
|
|
40
|
+
"query {
|
|
41
|
+
\tauthors: listAuthor {
|
|
42
|
+
\t\tid
|
|
43
|
+
\t\tname
|
|
44
|
+
\t\temail
|
|
45
|
+
\t\tposts {
|
|
46
|
+
\t\t\tid
|
|
47
|
+
\t\t\tpublishedAt
|
|
48
|
+
\t\t\ttags {
|
|
49
|
+
\t\t\t\tid
|
|
50
|
+
\t\t\t\tname
|
|
51
|
+
\t\t\t}
|
|
52
|
+
\t\t}
|
|
53
|
+
\t}
|
|
54
|
+
}
|
|
55
|
+
"
|
|
56
|
+
`;
|
|
57
|
+
|
|
58
|
+
exports[`queries nested object args 1`] = `
|
|
59
|
+
"query($PostWhere_0: PostWhere, $Int_1: Int) {
|
|
60
|
+
\tauthors: listAuthor {
|
|
61
|
+
\t\tid
|
|
62
|
+
\t\tname
|
|
63
|
+
\t\temail
|
|
64
|
+
\t\tposts(filter: $PostWhere_0, limit: $Int_1) {
|
|
65
|
+
\t\t\tid
|
|
66
|
+
\t\t\tpublishedAt
|
|
67
|
+
\t\t}
|
|
68
|
+
\t}
|
|
69
|
+
}
|
|
70
|
+
"
|
|
71
|
+
`;
|
|
72
|
+
|
|
73
|
+
exports[`queries list with args:
|
|
74
|
+
\t\t\t"query($AuthorWhere_0: AuthorWhere, $AuthorOrderBy_1: [AuthorOrderBy!], $Int_2: Int, $Int_3: Int) {
|
|
75
|
+
\t\t\t\tauthors: listAuthor(filter: $AuthorWhere_0, orderBy: $AuthorOrderBy_1, limit: $Int_2, offset: $Int_3) {
|
|
76
|
+
\t\t\t\t\tid
|
|
77
|
+
\t\t\t\t\tname
|
|
78
|
+
\t\t\t\t\temail
|
|
79
|
+
\t\t\t\t}
|
|
80
|
+
\t\t\t}
|
|
81
|
+
\t\t\t"
|
|
82
|
+
\t\t 1`] = `
|
|
83
|
+
"query($AuthorWhere_0: AuthorWhere, $AuthorOrderBy_1: [AuthorOrderBy!], $Int_2: Int, $Int_3: Int) {
|
|
84
|
+
\tauthors: listAuthor(filter: $AuthorWhere_0, orderBy: $AuthorOrderBy_1, limit: $Int_2, offset: $Int_3) {
|
|
85
|
+
\t\tid
|
|
86
|
+
\t\tname
|
|
87
|
+
\t\temail
|
|
88
|
+
\t}
|
|
89
|
+
}
|
|
90
|
+
"
|
|
91
|
+
`;
|
|
92
|
+
|
|
93
|
+
exports[`queries get by id 1`] = `
|
|
94
|
+
"query($AuthorUniqueWhere_0: AuthorUniqueWhere!) {
|
|
95
|
+
\tauthors: getAuthor(by: $AuthorUniqueWhere_0) {
|
|
96
|
+
\t\tid
|
|
97
|
+
\t\tname
|
|
98
|
+
\t\temail
|
|
99
|
+
\t}
|
|
100
|
+
}
|
|
101
|
+
"
|
|
102
|
+
`;
|