Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation generator fails when astNode missing #175

Closed
velias opened this issue May 10, 2023 · 1 comment
Closed

Documentation generator fails when astNode missing #175

velias opened this issue May 10, 2023 · 1 comment

Comments

@velias
Copy link
Contributor

velias commented May 10, 2023

Documentation generation fails when astNode is missing, for example if field has been added in code.
Exception is like:

TypeError: Cannot read properties of undefined (reading 'directives')
at getDirectiveValues (node_modules/graphql/execution/values.js:287:30)
at MapperKind.FIELD (node_modules/graphql-constraint-directive/index.js:150:38)
at mapFields (node_modules/@graphql-tools/utils/cjs/mapSchema.js:144:37)
at mapSchema (node_modules/@graphql-tools/utils/cjs/mapSchema.js:10:37)
at node_modules/graphql-constraint-directive/index.js:148:5
@velias
Copy link
Contributor Author

velias commented May 10, 2023

I will provide PR to patch this problem

@velias velias changed the title Doc generation fails when astNode missing Documentation generator fails when astNode missing May 10, 2023
velias added a commit to velias/graphql-constraint-directive that referenced this issue May 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant