Skip to content

feat: Allow configuration of graphql execution options(maxCoercionErrors)#8062

Merged
phryneas merged 12 commits intoapollographql:mainfrom
cristunaranjo:feat/8061
Jan 21, 2026
Merged

feat: Allow configuration of graphql execution options(maxCoercionErrors)#8062
phryneas merged 12 commits intoapollographql:mainfrom
cristunaranjo:feat/8061

Conversation

@cristunaranjo
Copy link
Copy Markdown
Contributor

Closes #8061

This PR introduces de ability to configure the graphql execution option maxCoercionErrors to control how many errors we want to allow in coercion phase. Currently, it defaults to 50 on graphql.

@apollo-cla
Copy link
Copy Markdown

@cristunaranjo: 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/

@codesandbox-ci
Copy link
Copy Markdown

codesandbox-ci bot commented May 9, 2025

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.

@svc-apollo-docs
Copy link
Copy Markdown
Collaborator

svc-apollo-docs commented May 9, 2025

✅ Docs preview has no changes

The preview was not built because there were no changes.

Build ID: 22b92a34196776437cda26ba

@glasser
Copy link
Copy Markdown
Member

glasser commented Jul 3, 2025

This looks like a good improvement. It is backwards-compatible, so I'm not going to rush to get it in before releasing v5. It needs docs.

@apollo-librarian
Copy link
Copy Markdown

apollo-librarian bot commented Jul 7, 2025

✅ Docs preview ready

The preview is ready to be viewed. View the preview

File Changes

0 new, 1 changed, 0 removed
* (developer-tools)/apollo-mcp-server/(latest)/command-reference.mdx

Build ID: a19119dfcf8786f7a57641ab

URL: https://www.apollographql.com/docs/deploy-preview/a19119dfcf8786f7a57641ab

@mabuyo
Copy link
Copy Markdown
Contributor

mabuyo commented Oct 23, 2025

@cristunaranjo I would like to personally apologize for the runaround commits caused by the AI Style Review 🥲 We're still working on improving this! Judging from your commits, it looks like it would benefit from going a step further and reviewing its own suggestions so that it can make just one validated suggestion in one go and prevent all those commits. Thanks for your patience!

Copy link
Copy Markdown
Contributor

@mabuyo mabuyo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM from the Docs side - I'll let @glasser handle the technical review

Copy link
Copy Markdown
Member

@phryneas phryneas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me - let's get it released soon.

@phryneas phryneas merged commit 8e54e58 into apollographql:main Jan 21, 2026
14 of 16 checks passed
@github-actions github-actions bot mentioned this pull request Jan 21, 2026
phryneas added a commit that referenced this pull request Jan 21, 2026
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.


# Releases
## @apollo/server@5.3.0

### Minor Changes

- [#8062](#8062)
[`8e54e58`](8e54e58)
Thanks [@cristunaranjo](https://github.com/cristunaranjo)! - Allow
configuration of graphql execution options (maxCoercionErrors)

    ```js
    const server = new ApolloServer({
      typeDefs,
      resolvers,
      executionOptions: {
        maxCoercionErrors: 50,
      },
    });
    ```

-
[#8014](#8014) [`26320bc`](26320bc)
Thanks [@mo4islona](https://github.com/mo4islona)! - Expose `graphql`
validation options.

    ```js
    const server = new ApolloServer({
      typeDefs,
      resolvers,
      validationOptions: {
        maxErrors: 10,
      },
    });
    ```

## @apollo/server-integration-testsuite@5.3.0

### Patch Changes

- Updated dependencies
\[[`8e54e58`](8e54e58),
[`26320bc`](26320bc)]:
    -   @apollo/server@5.3.0

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Lenz Weber-Tronic <lorenz.weber-tronic@apollographql.com>
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 21, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow configuration of graphql execution options (maxCoercionErrors)

6 participants