From eb9027e318ccb2bfc6264726bba781604f7b4442 Mon Sep 17 00:00:00 2001 From: Robert Herber Date: Wed, 13 Sep 2023 12:13:51 +0200 Subject: [PATCH] =?UTF-8?q?Don=E2=80=99t=20use=20types=20not=20available?= =?UTF-8?q?=20in=20graphql=2015?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../visitor-plugin-common/src/base-resolvers-visitor.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/plugins/other/visitor-plugin-common/src/base-resolvers-visitor.ts b/packages/plugins/other/visitor-plugin-common/src/base-resolvers-visitor.ts index f4cae6c0720..cc2501ae96e 100644 --- a/packages/plugins/other/visitor-plugin-common/src/base-resolvers-visitor.ts +++ b/packages/plugins/other/visitor-plugin-common/src/base-resolvers-visitor.ts @@ -3,8 +3,8 @@ import { getRootTypeNames } from '@graphql-tools/utils'; import autoBind from 'auto-bind'; import { ASTNode, - ConstObjectValueNode, - ConstValueNode, + ObjectValueNode, + ValueNode, DirectiveDefinitionNode, EnumTypeDefinitionNode, FieldDefinitionNode, @@ -54,7 +54,7 @@ import { import { OperationVariablesToObject } from './variables-to-object.js'; // converts an ObjectValueNode to the JS object it represents -const objectNodeToObject = (objectNode: ConstObjectValueNode) => { +const objectNodeToObject = (objectNode: ObjectValueNode) => { const { fields } = objectNode; return fields.reduce((acc, field) => { // for some reason this does not seem to match the type @@ -67,7 +67,7 @@ const objectNodeToObject = (objectNode: ConstObjectValueNode) => { }; // converts an ValueNode to the JS value it represents -const valueNodeToValue = (value: ConstValueNode): unknown => { +const valueNodeToValue = (value: ValueNode): unknown => { if (value.kind === 'StringValue') { return value.value; }