From 130abe0f9d400eb61f6ce98c3bc9950b4123112f Mon Sep 17 00:00:00 2001 From: Arda TANRIKULU Date: Mon, 22 May 2023 13:49:14 +0300 Subject: [PATCH] AggregateError --- packages/cli/src/config.ts | 1 - packages/handlers/thrift/src/index.ts | 1 - packages/json-machete/src/compareJSONSchemas.ts | 1 - packages/mergers/federation/src/index.ts | 7 +------ packages/runtime/src/get-mesh.ts | 1 - packages/transforms/rate-limit/src/index.ts | 2 +- 6 files changed, 2 insertions(+), 11 deletions(-) diff --git a/packages/cli/src/config.ts b/packages/cli/src/config.ts index 30ba2e1fc2a8f..ad4e37a9787af 100644 --- a/packages/cli/src/config.ts +++ b/packages/cli/src/config.ts @@ -4,7 +4,6 @@ import { ConfigProcessOptions, processConfig } from '@graphql-mesh/config'; import { path, process } from '@graphql-mesh/cross-helpers'; import { jsonSchema, YamlConfig } from '@graphql-mesh/types'; import { defaultImportFn, DefaultLogger, loadYaml } from '@graphql-mesh/utils'; -import { AggregateError } from '@graphql-tools/utils'; export function validateConfig( config: any, diff --git a/packages/handlers/thrift/src/index.ts b/packages/handlers/thrift/src/index.ts index 506a71d3fac14..16e7a3670a2f3 100644 --- a/packages/handlers/thrift/src/index.ts +++ b/packages/handlers/thrift/src/index.ts @@ -59,7 +59,6 @@ import { YamlConfig, } from '@graphql-mesh/types'; import { readFileOrUrl } from '@graphql-mesh/utils'; -import { AggregateError } from '@graphql-tools/utils'; export default class ThriftHandler implements MeshHandler { private config: YamlConfig.ThriftHandler; diff --git a/packages/json-machete/src/compareJSONSchemas.ts b/packages/json-machete/src/compareJSONSchemas.ts index c5ee8a2ea51cd..7f4d526282c0c 100644 --- a/packages/json-machete/src/compareJSONSchemas.ts +++ b/packages/json-machete/src/compareJSONSchemas.ts @@ -1,4 +1,3 @@ -import { AggregateError } from '@graphql-tools/utils'; import { resolvePath } from './dereferenceObject.js'; import { JSONSchema } from './types.js'; import { visitJSONSchema } from './visitJSONSchema.js'; diff --git a/packages/mergers/federation/src/index.ts b/packages/mergers/federation/src/index.ts index ff6ac2e396fd6..c07e59f080ffe 100644 --- a/packages/mergers/federation/src/index.ts +++ b/packages/mergers/federation/src/index.ts @@ -20,12 +20,7 @@ import { } from '@graphql-mesh/types'; import { printWithCache } from '@graphql-mesh/utils'; import { addResolversToSchema } from '@graphql-tools/schema'; -import { - AggregateError, - asArray, - ExecutionRequest, - printSchemaWithDirectives, -} from '@graphql-tools/utils'; +import { asArray, ExecutionRequest, printSchemaWithDirectives } from '@graphql-tools/utils'; import { wrapSchema } from '@graphql-tools/wrap'; export default class FederationMerger implements MeshMerger { diff --git a/packages/runtime/src/get-mesh.ts b/packages/runtime/src/get-mesh.ts index 13d25dd4dc014..b56ee1fac89d0 100644 --- a/packages/runtime/src/get-mesh.ts +++ b/packages/runtime/src/get-mesh.ts @@ -33,7 +33,6 @@ import { } from '@graphql-mesh/utils'; import { CreateProxyingResolverFn, Subschema, SubschemaConfig } from '@graphql-tools/delegate'; import { - AggregateError, ExecutionResult, getRootTypeMap, inspect, diff --git a/packages/transforms/rate-limit/src/index.ts b/packages/transforms/rate-limit/src/index.ts index cbdd1ecffa8bb..0964c575cb831 100644 --- a/packages/transforms/rate-limit/src/index.ts +++ b/packages/transforms/rate-limit/src/index.ts @@ -3,7 +3,7 @@ import { process } from '@graphql-mesh/cross-helpers'; import { ResolverData, stringInterpolator } from '@graphql-mesh/string-interpolation'; import { MeshTransform, MeshTransformOptions, YamlConfig } from '@graphql-mesh/types'; import type { DelegationContext } from '@graphql-tools/delegate'; -import { AggregateError, ExecutionRequest } from '@graphql-tools/utils'; +import { ExecutionRequest } from '@graphql-tools/utils'; export default class RateLimitTransform implements MeshTransform { private pathRateLimitDef = new Map();