Closed vojtech-dobes closed 2 years ago
Thanks for the contribution @vojtech-dobes! Great find! This should help close https://github.com/cjoudrey/graphql-schema-linter/issues/308.
I see some tests are failing. We might want to address those.
@cjoudrey I think I found it, there is difference in validate
arguments in graphql@15.x
and graphql@16.x
. Let me know if solving it by checking import { version } from 'graphql'
is okay.
Good catch!
Yeah, I am fine with changing logic based on version. I'd make the default behaviour the v16 method signature. That way things continue to work for v17 and so on.
@cjoudrey right - does it mean you want it further tweaked :)? I am not sure.
I think what you did is fine. Thanks again for the contribution. I'll get this merged and released shortly. 😄
@cjoudrey Thanks for accepting :)!
Fixes https://github.com/cjoudrey/graphql-schema-linter/issues/308
When our schema produced too many errors,
graphql
scream with following error:Subsequent errors sorting trips over missing location in this error :).
maxErrors
is documented specifically to not explode on crazy malicious queries, but considering purpose of this tool, raisingmaxErrors
effectively to infinity should be valid.