Skip to content

Commit

Permalink
Adjust subscribetoMore to recognize fetch policy
Browse files Browse the repository at this point in the history
Related to #3773.
  • Loading branch information
nuragic committed Aug 1, 2019
1 parent 042f29b commit 3f6a99f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/apollo-client/src/core/ObservableQuery.ts
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,7 @@ export class ObservableQuery<
const subscription = this.queryManager
.startGraphQLSubscription({
query: options.document,
fetchPolicy: options.fetchPolicy,
variables: options.variables,
})
.subscribe({
Expand Down
1 change: 1 addition & 0 deletions packages/apollo-client/src/core/watchQueryOptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ export type SubscribeToMoreOptions<
> = {
document: DocumentNode;
variables?: TSubscriptionVariables;
fetchPolicy?: FetchPolicy;
updateQuery?: UpdateQueryFn<TData, TSubscriptionVariables, TSubscriptionData>;
onError?: (error: Error) => void;
};
Expand Down

0 comments on commit 3f6a99f

Please sign in to comment.