This moves offline filtering to the API query path so map data respects settings at source instead of client-side post-filtering. Made-with: Cursor
15 lines
221 B
GraphQL
15 lines
221 B
GraphQL
query MapMarkers($isOnline: Boolean) {
|
|
locations(filter: { isOnline: $isOnline }) {
|
|
_id
|
|
name
|
|
city
|
|
isOnline
|
|
latitude
|
|
longitude
|
|
metricList
|
|
currentValue {
|
|
PMS25
|
|
Count
|
|
}
|
|
}
|
|
} |