Closed AceTheWiz closed 6 months ago
How can I query multiple batches ?
I solved it.
CursorResponse<ObjId> qrObjIds;
List<ObjId> objIds = new();
qrObjIds = await adb.Cursor.PostCursorAsync<ObjId>(
"""
FOR d IN `req-sw`
RETURN {Key:d._key, Id:d.AbsId}
""");
objIds.AddRange(qrObjIds.Result);
do
{
qrObjIds = await adb.Cursor.PostAdvanceCursorAsync<ObjId>(qrObjIds.Id);
objIds.AddRange(qrObjIds.Result);
} while (qrObjIds.HasMore);
Solved.
How can I query multiple batches ?