diff --git a/packages/ra-data-graphql/src/index.ts b/packages/ra-data-graphql/src/index.ts index c405a5bf82b..13bb312b120 100644 --- a/packages/ra-data-graphql/src/index.ts +++ b/packages/ra-data-graphql/src/index.ts @@ -186,12 +186,16 @@ const buildGraphQLProvider = (options: Options): DataProvider => { ...query, fetchPolicy: 'network-only', ...getOptions(otherOptions.query, raFetchMethod, resource), - context: { + }; + + apolloQuery.context = merge( + { fetchOptions: { signal: params?.signal, }, }, - }; + apolloQuery.context + ); return ( client