feat: add validationMaxErrors option
Fixes #8013
@mo4islona: Thank you for submitting a pull request! Before we can merge it, you'll need to sign the Apollo Contributor License Agreement here: https://contribute.apollographql.com/
✅ Docs Preview Ready
No new or changed pages found.
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.
I think it would be more extensible to add a validateOptions option similar to the existing parseOptions. It's a bit awkward that graphql-js does not export a ValidationOptions TS interface, but you could use Parameters<typeof validate>[3] or something.
I think it would be more extensible to add a
validateOptionsoption similar to the existingparseOptions. It's a bit awkward that graphql-js does not export a ValidationOptions TS interface, but you could useParameters<typeof validate>[3]or something.
Implemented.
This looks like a good improvement (very similar to #8062). It is backwards-compatible, so I'm not going to rush to get it in before releasing v5. It needs docs.