Nested Queries
CMR GraphQL provides a number of nested queries that allow you to perform multiple queries to CMR with a single GraphQL query.
In the example below the primary query collection has a field granules . This query will perform a collections request to CMR, then perform a granules request using the collection's conceptId to retrieve granules belonging to the parent collection.
Each nested query will return only the fields you provide from the appropriate Type, and can also be supplied with a set of parameters, as seen in the example below.
Query:
Variables:
Response:
Previous
- Query Fields
Items
Next
- Optional Headers
Authentication