From 091ca0df6c5355ceaa697f783d3e768edec554ba Mon Sep 17 00:00:00 2001 From: jbyrne Date: Mon, 6 May 2024 15:13:11 -0700 Subject: [PATCH] issue/hitide-ui-29: increase collections graphql call limit to maximum (2000) --- src/jpl/utils/SearchDatasets.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jpl/utils/SearchDatasets.js b/src/jpl/utils/SearchDatasets.js index 15d36129..83302fca 100644 --- a/src/jpl/utils/SearchDatasets.js +++ b/src/jpl/utils/SearchDatasets.js @@ -128,7 +128,7 @@ define([ var collectionIds = collectionObjectArray.map(function(collectionObject) { return '"' + collectionObject["Dataset-PersistentId"] + '"' }) - var templateQuery = "{\n collections (conceptId: [{COLLECTION_ID}]) {\n items {\n conceptId\n spatialExtent\n relatedUrls\n }\n }\n}" + var templateQuery = "{\n collections (conceptId: [{COLLECTION_ID}], limit: 2000) {\n items {\n conceptId\n spatialExtent\n relatedUrls\n }\n }\n}" var query = templateQuery.replace("{COLLECTION_ID}", collectionIds); var updatedCollectionObjects = request.post(graphqlURL, { handleAs: 'json',