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) } )); }