@vue/apollo-composable / useSubscription / Options
Interface: Options ​
Options for useSubscription.
1. Operation options ​
errorPolicy? ​
optionalerrorPolicy:ErrorPolicy
Specifies the ErrorPolicy to be used for this operation.
variables? ​
optionalvariables:ReactiveVariablesParameter
An object containing all of the GraphQL variables your subscription requires to execute.
2. Networking options ​
context? ​
optionalcontext:DefaultContext
Shared context between your component and your network interface (Apollo Link).
extensions? ​
optionalextensions:Record<string,unknown>
Extensions to be passed to the subscription.
3. Caching options ​
fetchPolicy? ​
optionalfetchPolicy:FetchPolicy
How you want your component to interact with the Apollo cache.
4. Vue-Apollo ​
clientId? ​
optionalclientId:string
ID of a named Apollo client to use instead of the default.
debounce? ​
optionaldebounce:number
Debounce variable updates (ms).
enabled? ​
optionalenabled:MaybeRefOrGetter<boolean>
Reactive flag to enable/disable the subscription.
shouldResubscribe? ​
optionalshouldResubscribe:boolean| (options) =>boolean
Determines if your subscription should be unsubscribed and subscribed again when an input to the hook (such as subscription or variables) changes.
Default ​
truethrottle? ​
optionalthrottle:number
Throttle variable updates (ms).