mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2026-04-19 12:59:12 +01:00
Fix pagination issue (#2298)
* Add changes for Load more option to work
* Remove localhost
* Add Mongo Pagination tests
* Run npm format
* Fix error in tests
* Cleanup CORSByPass
* Revert "Cleanup CORSByPass"
This reverts commit de11ece337.
This commit is contained in:
@@ -38,7 +38,7 @@ export function queryIterator(databaseId: string, collection: Collection, query:
|
||||
let continuationToken: string;
|
||||
return {
|
||||
fetchNext: () => {
|
||||
return queryDocuments(databaseId, collection, false, query).then((response) => {
|
||||
return queryDocuments(databaseId, collection, false, query, continuationToken).then((response) => {
|
||||
continuationToken = response.continuationToken;
|
||||
const headers: { [key: string]: string | number } = {};
|
||||
response.headers.forEach((value, key) => {
|
||||
|
||||
Reference in New Issue
Block a user