@graphql-tools/delegate 12.0.1 → 12.0.2-alpha-e30ce2b4b1e3eb36238ab835fb34ac9477295cf7
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/CHANGELOG.md +7 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @graphql-tools/delegate
|
|
2
2
|
|
|
3
|
+
## 12.0.2-alpha-e30ce2b4b1e3eb36238ab835fb34ac9477295cf7
|
|
4
|
+
### Patch Changes
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
- [`da8b8e3`](https://github.com/graphql-hive/gateway/commit/da8b8e3f3545487249b11c6577e3889f68527249) Thanks [@ardatan](https://github.com/ardatan)! - Use `getDefinedRootType` instead of `schema.getRootType` for GraphQL v15 compatibility
|
|
9
|
+
|
|
3
10
|
## 12.0.1
|
|
4
11
|
### Patch Changes
|
|
5
12
|
|
package/dist/index.cjs
CHANGED
|
@@ -1776,7 +1776,7 @@ function createRequest({
|
|
|
1776
1776
|
const variableDefinitions = [];
|
|
1777
1777
|
const argNodes = [];
|
|
1778
1778
|
if (args != null) {
|
|
1779
|
-
const rootType = targetSchema
|
|
1779
|
+
const rootType = targetSchema != null ? utils.getDefinedRootType(targetSchema, targetOperation) : void 0;
|
|
1780
1780
|
const rootField = rootType?.getFields()[rootFieldName];
|
|
1781
1781
|
const rootFieldArgs = rootField?.args;
|
|
1782
1782
|
for (const argName in args) {
|
package/dist/index.js
CHANGED
|
@@ -1776,7 +1776,7 @@ function createRequest({
|
|
|
1776
1776
|
const variableDefinitions = [];
|
|
1777
1777
|
const argNodes = [];
|
|
1778
1778
|
if (args != null) {
|
|
1779
|
-
const rootType = targetSchema
|
|
1779
|
+
const rootType = targetSchema != null ? getDefinedRootType(targetSchema, targetOperation) : void 0;
|
|
1780
1780
|
const rootField = rootType?.getFields()[rootFieldName];
|
|
1781
1781
|
const rootFieldArgs = rootField?.args;
|
|
1782
1782
|
for (const argName in args) {
|
package/package.json
CHANGED