No defaultOptions support for subscriptions

Author: fabis94Created Oct 8, 2025Updated May 29, 2026

Even on the latest version (Apollo Client v4.07) there's no defaultOptions support for subscriptions: https://github.com/apollographql/apollo-client/blob/231de9404ec8c0807bca31ff6c2050a64bc2b656/src/core/ApolloClient.ts#L1011

If you look at mutate() and query(), those do: https://github.com/apollographql/apollo-client/blob/231de9404ec8c0807bca31ff6c2050a64bc2b656/src/core/ApolloClient.ts#L979

A very obvious oversight! Wanted to set a custom errorPolicy for all subs, now I can't do this and have to set it manually for all of them...

There was an older issue for this already: https://github.com/apollographql/apollo-client/issues/11411 People suggested creating wrappers, but that's horrible DX. Should not have to create wrappers for this!

Source: apollographql/apollo-client