1.5 KiB
1.5 KiB
ApolloQuery component
Props
query: GraphQL query (transformed bygraphql-tag)variables: Object of GraphQL variablesfetchPolicy: See apollo fetchPolicypollInterval: See apollo pollIntervalnotifyOnNetworkStatusChange: See apollo notifyOnNetworkStatusChangecontext: See apollo contextskip: Boolean disabling query fetchingclientId: Used to resolve the Apollo Client used (defined in ApolloProvider)deep: Boolean to use deep Vue watcherstag: String HTML tag name (default:div)
Scoped slot
result: Apollo Query resultresult.data: Data returned by the queryresult.loading: Boolean indicating that a request is in flightresult.error: Eventual error for the current resultresult.networkStatus: See apollo networkStatus
query: Smart Query associated with the componentisLoading: Smart Query loading stategqlError: first GraphQL error if anytimes: number of times the result was updated
Events
result(resultObject)error(errorObject)