vieweris the context for the currently logged in user. From this you fetch the
organizationobject and the first 50 of the plans associated with that. If you have less than 50 plans you are done. If you have more example you will get a response like this.
hasNextPageis True so you know you need to fetch the next page of data. To do this simply modify your query to set the
afterpaging parameter to the
plansquery returns type
Plan. This is an interface for the common fields across all types of plans. There are more specific types of Plans, specifically
MapPlanwhich includes more data such as exports. To fetch these extra fields you need to use an Inline Fragment.
nameof all plans, but for objects of type
MapPlanyou want the
statusof the processing as well.