@graphql-tools/delegate 12.0.1 → 12.0.2-alpha-e58e1a0107f62961c3bfe8256f6ef948ccf8b528

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 CHANGED
@@ -1,5 +1,12 @@
1
1
  # @graphql-tools/delegate
2
2
 
3
+ ## 12.0.2-alpha-e58e1a0107f62961c3bfe8256f6ef948ccf8b528
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?.getRootType(targetOperation);
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?.getRootType(targetOperation);
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphql-tools/delegate",
3
- "version": "12.0.1",
3
+ "version": "12.0.2-alpha-e58e1a0107f62961c3bfe8256f6ef948ccf8b528",
4
4
  "type": "module",
5
5
  "description": "A set of utils for faster development of GraphQL tools",
6
6
  "repository": {