GeoPard Tutorials
Ask or search…
⌃K

47. Query: Get "ZonesMaps"

Query to get user "ZonesMaps". To implement pagination logic, use the query parameter pageSize. The filter works like AND condition, e.g. possible to filter by farmUuid, fieldUuid, vectorAnalysisMapUuid, labels, purpose, type, and withRatesOnly in the one query or use just one filter condition or use no condition.
Restrictions: filtering by purpose, type, and withRatesOnly works only in conjunction with fieldUuid. It is allowed to search zones maps by vectorAnalysisMapUuid single attribute.
There are lastEvaluatedKey and totalCount in response. The lastEvaluatedKey refers to the last processed record to match filter conditions. The totalCount - is the total number of records that match the filtering conditions.
1
query FilterZonesMapsSample {
2
getZonesMaps(
3
filter: {
4
pageSize: 10
5
fieldUuid: "<placeholder_of_field_uuid>"
6
farmUuid: "<placeholder_of_farm_uuid>"
7
purpose: SEEDING
8
type: SATELLITE
9
labels: ["id=field"]
10
withRatesOnly: true
11
vectorAnalysisMapUuid: "<placeholder_of_vectoranalysismap_uuid>"
12
}
13
) {
14
zonesMaps {
15
uuid
16
name
17
zonesMapGeojson(unit: ACRES)
18
}
19
totalCount
20
lastEvaluatedKey {
21
PartitionKey
22
SortKey
23
TagString
24
}
25
}
26
}