Skip to content

Commit

Permalink
issue/hitide-ui-29: increase collections graphql call limit to maximu…
Browse files Browse the repository at this point in the history
…m (2000) (#67)

Co-authored-by: jbyrne <[email protected]>
  • Loading branch information
jbyrne6 and jbyrne committed May 6, 2024
1 parent 6fb232a commit acbabfe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/jpl/utils/SearchDatasets.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit acbabfe

Please sign in to comment.