Skip to content

Commit

Permalink
fix typo in error message (#3161)
Browse files Browse the repository at this point in the history
  • Loading branch information
clenfest authored Oct 15, 2024
1 parent 062572b commit bdefb7a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composition-js/src/__tests__/compose.setContext.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.'
);
});

Expand Down
2 changes: 1 addition & 1 deletion internals-js/src/federation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) }
));
}
Expand Down

0 comments on commit bdefb7a

Please sign in to comment.