Files
webapp/graphql/operations/public/geo/GetNodes.graphql
Ruslan Bakiev 9b99d8981c
All checks were successful
Build Docker Image / build (push) Successful in 4m12s
Optimize catalog loading: backend bounds filtering + early returns
- Add bounds (west/south/east/north) parameters to GetNodes query
- Add setBoundsFilter to useCatalogHubs, useCatalogSuppliers, useCatalogProducts
- Replace client-side bounds filtering with backend query
- Add early return to setProductFilter to avoid redundant fetches
- Watch filterByBounds to trigger backend refetch when checkbox changes
2026-01-24 12:19:00 +07:00

14 lines
522 B
GraphQL

query GetNodes($limit: Int, $offset: Int, $transportType: String, $country: String, $west: Float, $south: Float, $east: Float, $north: Float) {
nodes(limit: $limit, offset: $offset, transportType: $transportType, country: $country, west: $west, south: $south, east: $east, north: $north) {
uuid
name
latitude
longitude
country
countryCode
syncedAt
transportTypes
}
nodesCount(transportType: $transportType, country: $country, west: $west, south: $south, east: $east, north: $north)
}