@vue/apollo-composable / useQuery / Current
Interface: Current ​
Current state.
1. Operation data ​
error? ​
optionalerror:ErrorLike
A single ErrorLike object describing the error that occurred during the latest query execution.
For more information, see Handling operation errors.
partial ​
partial:
boolean
Describes whether result is a complete or partial result. This flag is only set when returnPartialData is true in query options.
Deprecated ​
This field will be removed in a future version of Apollo Client.
result ​
result:
object|null|undefined
An object containing the result of your GraphQL query after it completes.
This value might be undefined if a query results in one or more errors (depending on the query's errorPolicy).
resultState ​
resultState:
"complete"|"partial"|"empty"|"streaming"
Describes the completeness of result.
empty: No data could be fulfilled from the cache or the result is incomplete.resultisundefined.partial: Some data could be fulfilled from the cache butresultis incomplete. This is only possible whenreturnPartialDataistrue.streaming:resultis incomplete as a result of a deferred query and the result is still streaming in.complete:resultis a fully satisfied query result fulfilled either from the cache or network.
2. Network info ​
loading ​
loading:
boolean
If true, the query is still in flight.
networkStatus ​
networkStatus:
NetworkStatus
A number indicating the current network state of the query's associated request. See possible values.
Used in conjunction with the notifyOnNetworkStatusChange option.