From bdefb7a1d4ccf48d12bc7ce6d825aeb0510c808b Mon Sep 17 00:00:00 2001 From: Chris Lenfest Date: Tue, 15 Oct 2024 10:46:21 -0500 Subject: [PATCH] fix typo in error message (#3161) --- composition-js/src/__tests__/compose.setContext.test.ts | 2 +- internals-js/src/federation.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/composition-js/src/__tests__/compose.setContext.test.ts b/composition-js/src/__tests__/compose.setContext.test.ts index 7bec91511..83ad80445 100644 --- a/composition-js/src/__tests__/compose.setContext.test.ts +++ b/composition-js/src/__tests__/compose.setContext.test.ts @@ -817,7 +817,7 @@ describe("setContext tests", () => { expect(result.schema).toBeUndefined(); expect(result.errors?.length).toBe(1); expect(result.errors?.[0].message).toBe( - '[Subgraph1] Object "U" has no resolvable key but has an a field with a contextual argument.' + '[Subgraph1] Object "U" has no resolvable key but has a field with a contextual argument.' ); }); diff --git a/internals-js/src/federation.ts b/internals-js/src/federation.ts index e7475fa37..8faa98082 100644 --- a/internals-js/src/federation.ts +++ b/internals-js/src/federation.ts @@ -1808,7 +1808,7 @@ export class FederationBlueprint extends SchemaBlueprint { const keyApplications = objectType.appliedDirectivesOf(keyDirective); if (!keyApplications.some(app => app.arguments().resolvable || app.arguments().resolvable === undefined)) { errorCollector.push(ERRORS.CONTEXT_NO_RESOLVABLE_KEY.err( - `Object "${objectType.coordinate}" has no resolvable key but has an a field with a contextual argument.`, + `Object "${objectType.coordinate}" has no resolvable key but has a field with a contextual argument.`, { nodes: sourceASTs(objectType) } )); }