@graphql-mesh/transform-federation 0.11.7 → 0.11.9
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/cjs/index.js +3 -4
- package/esm/index.js +3 -3
- package/package.json +4 -4
package/cjs/index.js
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const
|
|
3
|
+
const dset_1 = require("dset");
|
|
4
4
|
const graphql_1 = require("graphql");
|
|
5
|
-
const lodash_set_1 = tslib_1.__importDefault(require("lodash.set"));
|
|
6
5
|
const types_js_1 = require("@apollo/subgraph/dist/types.js");
|
|
7
6
|
const string_interpolation_1 = require("@graphql-mesh/string-interpolation");
|
|
8
7
|
const utils_1 = require("@graphql-mesh/utils");
|
|
@@ -107,7 +106,7 @@ class FederationTransform {
|
|
|
107
106
|
env: process.env,
|
|
108
107
|
});
|
|
109
108
|
if (argVal) {
|
|
110
|
-
(0,
|
|
109
|
+
(0, dset_1.dset)(args, argName, argVal);
|
|
111
110
|
}
|
|
112
111
|
}
|
|
113
112
|
const result = await context[this.apiName].Query[queryField.name]({
|
|
@@ -132,7 +131,7 @@ class FederationTransform {
|
|
|
132
131
|
if ((0, graphql_1.isObjectType)(type)) {
|
|
133
132
|
entityTypes.push(type);
|
|
134
133
|
}
|
|
135
|
-
(0,
|
|
134
|
+
(0, dset_1.dset)(type, 'extensions.apollo.subgraph.resolveReference', rawSource.merge[typeName].resolve);
|
|
136
135
|
}
|
|
137
136
|
const schemaWithFederationQueryType = (0, utils_2.mapSchema)(schema, {
|
|
138
137
|
[utils_2.MapperKind.QUERY]: type => {
|
package/esm/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { dset } from 'dset';
|
|
1
2
|
import { GraphQLInterfaceType, GraphQLObjectType, GraphQLUnionType, isObjectType, } from 'graphql';
|
|
2
|
-
import set from 'lodash.set';
|
|
3
3
|
import { entitiesField, EntityType, serviceField } from '@apollo/subgraph/dist/types.js';
|
|
4
4
|
import { stringInterpolator } from '@graphql-mesh/string-interpolation';
|
|
5
5
|
import { loadFromModuleExportExpression } from '@graphql-mesh/utils';
|
|
@@ -104,7 +104,7 @@ export default class FederationTransform {
|
|
|
104
104
|
env: process.env,
|
|
105
105
|
});
|
|
106
106
|
if (argVal) {
|
|
107
|
-
|
|
107
|
+
dset(args, argName, argVal);
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
110
|
const result = await context[this.apiName].Query[queryField.name]({
|
|
@@ -129,7 +129,7 @@ export default class FederationTransform {
|
|
|
129
129
|
if (isObjectType(type)) {
|
|
130
130
|
entityTypes.push(type);
|
|
131
131
|
}
|
|
132
|
-
|
|
132
|
+
dset(type, 'extensions.apollo.subgraph.resolveReference', rawSource.merge[typeName].resolve);
|
|
133
133
|
}
|
|
134
134
|
const schemaWithFederationQueryType = mapSchema(schema, {
|
|
135
135
|
[MapperKind.QUERY]: type => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphql-mesh/transform-federation",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.9",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"graphql": "*"
|
|
@@ -8,13 +8,13 @@
|
|
|
8
8
|
"dependencies": {
|
|
9
9
|
"@apollo/subgraph": "2.3.2",
|
|
10
10
|
"@graphql-mesh/string-interpolation": "0.4.2",
|
|
11
|
-
"@graphql-mesh/types": "0.91.
|
|
12
|
-
"@graphql-mesh/utils": "0.43.
|
|
11
|
+
"@graphql-mesh/types": "0.91.7",
|
|
12
|
+
"@graphql-mesh/utils": "0.43.15",
|
|
13
13
|
"@graphql-tools/delegate": "9.0.28",
|
|
14
14
|
"@graphql-tools/stitching-directives": "2.3.31",
|
|
15
15
|
"@graphql-tools/utils": "9.2.1",
|
|
16
|
+
"dset": "3.1.2",
|
|
16
17
|
"graphql-transform-federation": "2.2.0",
|
|
17
|
-
"lodash.set": "4.3.2",
|
|
18
18
|
"tslib": "^2.4.0"
|
|
19
19
|
},
|
|
20
20
|
"repository": {
|