Update map marker mapping for locations query.

Switch MapMarkers handling from getMarkers to locations, and align mapper fields with the new Location payload while preserving MapItem coordinates and online status.

Made-with: Cursor
This commit is contained in:
2026-02-28 23:09:09 +01:00
parent 4caadd24b9
commit 02c33e5ad5
3 changed files with 17 additions and 14 deletions

View File

@@ -1,9 +1,14 @@
query MapMarkers($isOnline: Boolean!) {
getMarkers(filter: { isOnline: $isOnline }) {
locations(filter: { isOnline: $isOnline }) {
_id
name
city
isOnline
latitude
longitude
text
metricList
currentValue {
PMS25
}
}
}
}