Query Workers
Read next batch from cursor
If the query worker cursor is still valid, returns an object with the following attributes:
- id: the cursor-identifier
- result: a list of documents for the current batch
- hasMore: false if this was the last batch
- count: if present the total number of elements
If hasMore returns true, the next call might still return no documents. If hasMore is false, the cursor is exhausted. Once the hasMore attribute has a value of false, the client can stop.
put/_fabric/{fabric}/_api/restql/fetch/{id}
Request
- The document declares no server URL.
- Auth
- API key in header Authorization
- or HTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
fabricstring string required
The name of the fabric.
idstring string required
The id of the cursor.
Response
Successfully fetched the next batch of records.
Example response
{
"code": 200,
"hasMore": true,
"id": 11894969,
"extra": {
"stats": [],
"warnings": []
},
"result": [
{
"_id": "test/foo",
"_key": "foo",
"_rev": "_dPRuHxe--_",
"data": "data1"
}
]
}Changes
No recorded changes to this operation across all 1 revision of this API.