Skip to content

Commit bdefb7a

Browse files
authored
fix typo in error message (#3161)
1 parent 062572b commit bdefb7a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

composition-js/src/__tests__/compose.setContext.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -817,7 +817,7 @@ describe("setContext tests", () => {
817817
expect(result.schema).toBeUndefined();
818818
expect(result.errors?.length).toBe(1);
819819
expect(result.errors?.[0].message).toBe(
820-
'[Subgraph1] Object "U" has no resolvable key but has an a field with a contextual argument.'
820+
'[Subgraph1] Object "U" has no resolvable key but has a field with a contextual argument.'
821821
);
822822
});
823823

internals-js/src/federation.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1808,7 +1808,7 @@ export class FederationBlueprint extends SchemaBlueprint {
18081808
const keyApplications = objectType.appliedDirectivesOf(keyDirective);
18091809
if (!keyApplications.some(app => app.arguments().resolvable || app.arguments().resolvable === undefined)) {
18101810
errorCollector.push(ERRORS.CONTEXT_NO_RESOLVABLE_KEY.err(
1811-
`Object "${objectType.coordinate}" has no resolvable key but has an a field with a contextual argument.`,
1811+
`Object "${objectType.coordinate}" has no resolvable key but has a field with a contextual argument.`,
18121812
{ nodes: sourceASTs(objectType) }
18131813
));
18141814
}

0 commit comments

Comments
 (0)