Skip to content

Update Apollo GraphQL packages to v5.0.1#361

Merged
JakeWharton merged 1 commit into
trunkfrom
renovate/apollo-graphql-packages
Jun 25, 2026
Merged

Update Apollo GraphQL packages to v5.0.1#361
JakeWharton merged 1 commit into
trunkfrom
renovate/apollo-graphql-packages

Conversation

@renovate

@renovate renovate Bot commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
com.apollographql.apollo:apollo-runtime 5.0.05.0.1 age confidence
com.apollographql.apollo:apollo-gradle-plugin 5.0.05.0.1 age confidence

Release Notes

apollographql/apollo-kotlin (com.apollographql.apollo:apollo-runtime)

v5.0.1: 5.0.1

A few bugfixes, support for onError, and promote "directives on directives" which was merged in the specification recently.

Experimental onError support

If your server supports the onError request parameter, you can now use it to control error propagation:

val response = apolloClient.query(FooQuery())
                .onError(OnError.NULL)
                .execute()

When using OnError.NULL, error propagation is disabled, meaning you get more partial data:

type Query {
  user: User
}

type User {
  name: String!
  email: String!
}

If an error occurs at user.email, you will get a partial response with user.name but no user.email, instead of propagating the error to the parent user field:

{
  "errors": [{"path": ["user", "email"] }],
  "data": {
    "user": {
      "name": "John Doe",
      "email": null
    }
  }
}

Coupled with error aware parsing, it allows for more granular error handling.

Note: onError achieves the same functionality as @experimental_DisableErrorPropagation. It is expected that onError ultimately replaces the directive.

👷‍♂️ All changes
  • [compiler] Add missing dependency on kotlinx-serialization-core (#​6973)
  • [compiler] Exclude invalid fields from field merging validation, fixes validation could hang on some invalid operations (#​6972)
  • [runtime] Expose a proper [JsonDataException] in case null is returned in an unexpected position (#​6971)
  • [runtime] Add NullableLongAdapter (#​6968)
  • [runtime] Add ApolloClient support for onError (#​6963)
  • [runtime] Fix bug with duplicate headers being added when using batching (#​6961)
  • [runtime] Deprecate allowDirectivesOnDirectives, it is now merged (#​6965)
  • [runtime] Fix allowDirectivesOnDirectives not being honored (#​6953)
  • [runtime] Workaround introspection for servers that do not support isOneOf despite advertizing it (#​6949)

Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about these updates again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@JakeWharton JakeWharton merged commit 8bdfbe3 into trunk Jun 25, 2026
3 checks passed
@JakeWharton JakeWharton deleted the renovate/apollo-graphql-packages branch June 25, 2026 19:07
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

Successfully merging this pull request may close these issues.

1 participant