@vue/apollo-composable / useQuery / FetchMoreOptions
Interface: FetchMoreOptions ​
Options for fetchMore.
1. Operation options ​
errorPolicy? ​
optionalerrorPolicy:ErrorPolicy
Specifies how the query handles a response that returns both GraphQL errors and partial results.
For details, see GraphQL error policies.
The default value is none, meaning that the query result includes error details but not partial results.
query? ​
optionalquery:DocumentNode
A GraphQL query string parsed into an AST with the gql template literal.
variables? ​
optionalvariables:OperationVariables
An object containing all of the GraphQL variables your query requires to execute.
Each key in the object corresponds to a variable name, and that key's value corresponds to the variable value.
2. Networking options ​
context? ​
optionalcontext:DefaultContext
If you're using Apollo Link, this object is the initial value of the context object that's passed along your link chain.
3. Query methods ​
updateQuery()? ​
optionalupdateQuery: (previousQueryResult,options) =>object
A function which updates the query result with the new fetchMore result.
Parameters ​
previousQueryResult ​
object
options ​
fetchMoreResult ​
object
variables ​
object
Returns ​
object