fix: improve composeDirective error message#3282
Conversation
Since we cannot easily fix incorrect directive definition (#3281) without breaking our clients. This PR improves error messages when `@composeDirective` arguments are NULL or empty strings. Previous message on undefined/null argument value `Cannot read properties of undefined (reading '0')` New message `Argument to @composeDirective in subgraph "${sg.name}" cannot be NULL or an empty String`
|
|
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. |
✅ Docs preview readyThe preview is ready to be viewed. View the preview File Changes 0 new, 1 changed, 0 removedBuild ID: 8418da277dc72e7f065113c6 URL: https://www.apollographql.com/docs/deploy-preview/8418da277dc72e7f065113c6 |
Since we cannot easily fix incorrect directive definition (#3281) without breaking our clients. This PR improves error messages when
@composeDirectivearguments are NULL or empty strings.Previous message on undefined/null argument value
Cannot read properties of undefined (reading '0')New message
Argument to @composeDirective in subgraph "${sg.name}" cannot be NULL or an empty String