You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1. The issue provides a reproduction available on Github, Stackblitz or CodeSandbox
Make sure to fork this template and run yarn generate in the terminal.
Please make sure the GraphQL Tools package versions under package.json matches yours.
2. A failing test has been provided
3. A local solution has been provided
4. A pull request is pending review
Describe the bug
It appears that in a recent release of the utils package, there is a regression in the getDirectives function (diff). The new exported function getDirectiveExtensions can cause an undefined error while iterating over an incorrect path. In previous versions, this case was handled.
Issue workflow progress
Progress of the issue based on the
Contributor Workflow
Describe the bug
It appears that in a recent release of the utils package, there is a regression in the
getDirectives
function (diff). The new exported functiongetDirectiveExtensions
can cause an undefined error while iterating over an incorrect path. In previous versions, this case was handled.To Reproduce Steps to reproduce the behavior:
The following code throws an error:
Expected behavior
The
getDirectiveExtensions
(and its callers) should successfully handle an invalid path.Environment:
@graphql-tools/...
:Additional context
The text was updated successfully, but these errors were encountered: