This function can be set to automatically get the previous cursor for infinite queries.
The result will also be used to determine the value of hasPreviousPage
.
Additional payload to be stored on each query. Use this property to pass information that can be used in other places.
If false
, failed queries will not retry by default.
If true
, failed queries will retry infinitely., failureCount: num
If set to an integer number, e.g. 3, failed queries will retry until the failed query count meets that number.
If set to a function (failureCount, error) => boolean
failed queries will retry until the function returns false.
The time in milliseconds after data is considered stale. If the data is fresh it will be returned from the cache.
Set this to false
to disable structural sharing between query results.
Defaults to true
.
Generated using TypeDoc
This function can be set to automatically get the next cursor for infinite queries. The result will also be used to determine the value of
hasNextPage
.