@contember/bindx 0.1.42 → 0.1.43
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContemberAdapter.d.ts","sourceRoot":"","sources":["../../src/adapter/ContemberAdapter.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,aAAa,
|
|
1
|
+
{"version":3,"file":"ContemberAdapter.d.ts","sourceRoot":"","sources":["../../src/adapter/ContemberAdapter.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,aAAa,EAgBb,MAAM,yBAAyB,CAAA;AAChC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAA;AAC9D,OAAO,KAAK,EAAE,SAAS,EAAkB,MAAM,4BAA4B,CAAA;AAC3E,OAAO,KAAK,EAAE,cAAc,EAAE,KAAK,EAAE,WAAW,EAAE,YAAY,EAAmC,aAAa,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAE9J,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAA;AAEjE;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACvC,8BAA8B;IAC9B,MAAM,EAAE,aAAa,CAAA;IACrB,qDAAqD;IACrD,cAAc,EAAE,cAAc,CAAA;CAC9B;AAED;;;GAGG;AACH,qBAAa,gBAAiB,YAAW,cAAc;IAGrD,OAAO,CAAC,QAAQ,CAAC,aAAa;IAC9B,OAAO,CAAC,QAAQ,CAAC,cAAc;gBADd,aAAa,EAAE,aAAa,EAC5B,cAAc,EAAE,cAAc;IAI1C,KAAK,CAAC,OAAO,EAAE,SAAS,KAAK,EAAE,EAAE,OAAO,CAAC,EAAE,YAAY,GAAG,OAAO,CAAC,WAAW,EAAE,CAAC;IA0CtF,OAAO,CAAC,aAAa;IAcrB,OAAO,CAAC,cAAc;IAmBtB,OAAO,CAAC,eAAe;IAajB,OAAO,CACZ,UAAU,EAAE,MAAM,EAClB,EAAE,EAAE,MAAM,EACV,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC9B,OAAO,CAAC,aAAa,CAAC;IAiCnB,MAAM,CACX,UAAU,EAAE,MAAM,EAClB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC3B,OAAO,CAAC,YAAY,CAAC;IAkClB,MAAM,CAAC,UAAU,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC;IA4BnE;;OAEG;IACH,OAAO,CAAC,gBAAgB;IAsBxB;;OAEG;IACH,OAAO,CAAC,aAAa;CAMrB;AAED;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,IAAI,EAAE,SAAS,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAsE5G"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contember/bindx",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.43",
|
|
4
4
|
"description": "Type-safe data binding framework (core)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./src/index.ts",
|
|
@@ -17,8 +17,7 @@
|
|
|
17
17
|
],
|
|
18
18
|
"license": "MIT",
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@contember/bindx-client": "0.1.
|
|
21
|
-
"@contember/graphql-builder": "^2.1.0-beta.1",
|
|
20
|
+
"@contember/bindx-client": "0.1.43",
|
|
22
21
|
"@contember/graphql-client": "^2.1.0-beta.1"
|
|
23
22
|
},
|
|
24
23
|
"repository": {
|
|
@@ -12,6 +12,7 @@ import {
|
|
|
12
12
|
buildDeleteArgs,
|
|
13
13
|
buildMutationSelection,
|
|
14
14
|
buildNodeSelectionFromMutationData,
|
|
15
|
+
buildCountSelection,
|
|
15
16
|
mutationFragments,
|
|
16
17
|
unwrapPaginateResult,
|
|
17
18
|
} from '@contember/bindx-client'
|
|
@@ -20,7 +21,6 @@ import type { QuerySpec, QueryFieldSpec } from '../selection/buildQuery.js'
|
|
|
20
21
|
import type { BackendAdapter, Query, QueryResult, QueryOptions, GetQuery, ListQuery, CountQuery, PersistResult, CreateResult, DeleteResult } from './types.js'
|
|
21
22
|
import type { ContemberMutationResult } from '../errors/pathMapper.js'
|
|
22
23
|
import type { SchemaRegistry } from '../schema/SchemaRegistry.js'
|
|
23
|
-
import { GraphQlField } from '@contember/graphql-builder'
|
|
24
24
|
|
|
25
25
|
/**
|
|
26
26
|
* Options for ContemberAdapter
|
|
@@ -121,11 +121,7 @@ export class ContemberAdapter implements BackendAdapter {
|
|
|
121
121
|
|
|
122
122
|
private buildCountQuery(query: CountQuery): ContentQuery<unknown> {
|
|
123
123
|
const args = buildListArgs(query.entityType, { filter: query.filter }, 'paginate')
|
|
124
|
-
const selectionSet =
|
|
125
|
-
new GraphQlField(null, 'pageInfo', {}, [
|
|
126
|
-
new GraphQlField(null, 'totalCount'),
|
|
127
|
-
]),
|
|
128
|
-
]
|
|
124
|
+
const selectionSet = buildCountSelection()
|
|
129
125
|
|
|
130
126
|
return new ContentOperation(
|
|
131
127
|
'query',
|