@graphql-tools/delegate 7.0.0-alpha-624d205a.0 → 7.0.0
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/Subschema.d.ts +2 -3
- package/es5/Subschema.d.ts +2 -3
- package/es5/index.cjs.js +14 -14
- package/es5/index.cjs.js.map +1 -1
- package/es5/index.esm.js +15 -15
- package/es5/index.esm.js.map +1 -1
- package/es5/package.json +4 -4
- package/es5/types.d.ts +8 -13
- package/index.cjs.js +13 -13
- package/index.cjs.js.map +1 -1
- package/index.esm.js +14 -14
- package/index.esm.js.map +1 -1
- package/package.json +4 -4
- package/types.d.ts +8 -13
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphql-tools/delegate",
|
|
3
|
-
"version": "7.0.0
|
|
3
|
+
"version": "7.0.0",
|
|
4
4
|
"description": "A set of utils for faster development of GraphQL tools",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"peerDependencies": {
|
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
10
|
"@ardatan/aggregate-error": "0.0.6",
|
|
11
|
-
"@graphql-tools/batch-execute": "7.0.0
|
|
12
|
-
"@graphql-tools/schema": "
|
|
13
|
-
"@graphql-tools/utils": "7.0.0
|
|
11
|
+
"@graphql-tools/batch-execute": "^7.0.0",
|
|
12
|
+
"@graphql-tools/schema": "^7.0.0",
|
|
13
|
+
"@graphql-tools/utils": "^7.0.0",
|
|
14
14
|
"dataloader": "2.0.0",
|
|
15
15
|
"is-promise": "4.0.0",
|
|
16
16
|
"tslib": "~2.0.1"
|
package/types.d.ts
CHANGED
|
@@ -96,25 +96,20 @@ export interface ICreateProxyingResolverOptions {
|
|
|
96
96
|
fieldName?: string;
|
|
97
97
|
}
|
|
98
98
|
export declare type CreateProxyingResolverFn = (options: ICreateProxyingResolverOptions) => GraphQLFieldResolver<any, any>;
|
|
99
|
-
export interface
|
|
100
|
-
rootValue?: Record<string, any>;
|
|
101
|
-
executor?: Executor;
|
|
102
|
-
subscriber?: Subscriber;
|
|
103
|
-
batch?: boolean;
|
|
104
|
-
batchingOptions?: EndpointBatchingOptions<K, V, C>;
|
|
105
|
-
}
|
|
106
|
-
export interface EndpointBatchingOptions<K = any, V = any, C = K> {
|
|
99
|
+
export interface BatchingOptions<K = any, V = any, C = K> {
|
|
107
100
|
extensionsReducer?: (mergedExtensions: Record<string, any>, executionParams: ExecutionParams) => Record<string, any>;
|
|
108
101
|
dataLoaderOptions?: DataLoader.Options<K, V, C>;
|
|
109
102
|
}
|
|
110
|
-
export interface
|
|
103
|
+
export interface SubschemaConfig<K = any, V = any, C = K> {
|
|
104
|
+
schema: GraphQLSchema;
|
|
111
105
|
createProxyingResolver?: CreateProxyingResolverFn;
|
|
112
106
|
transforms?: Array<Transform>;
|
|
113
107
|
merge?: Record<string, MergedTypeConfig>;
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
108
|
+
rootValue?: Record<string, any>;
|
|
109
|
+
executor?: Executor;
|
|
110
|
+
subscriber?: Subscriber;
|
|
111
|
+
batch?: boolean;
|
|
112
|
+
batchingOptions?: BatchingOptions<K, V, C>;
|
|
118
113
|
}
|
|
119
114
|
export interface MergedTypeConfig<K = any, V = any> {
|
|
120
115
|
selectionSet?: string;
|