Files
webapp/graphql/operations/public/geo/NearestOffers.graphql
Ruslan Bakiev 29c34a048a
All checks were successful
Build Docker Image / build (push) Successful in 5m0s
fix: migrate geo GraphQL queries and frontend to camelCase
Geo backend was migrated to camelCase but frontend .graphql files and
component code still used snake_case, causing 400 errors on all geo API calls.
2026-03-10 14:10:23 +07:00

36 lines
718 B
GraphQL

query NearestOffers($lat: Float!, $lon: Float!, $radius: Float, $productUuid: String, $hubUuid: String, $limit: Int) {
nearestOffers(lat: $lat, lon: $lon, radius: $radius, productUuid: $productUuid, hubUuid: $hubUuid, limit: $limit) {
uuid
productUuid
productName
supplierUuid
supplierName
latitude
longitude
country
countryCode
pricePerUnit
currency
quantity
unit
distanceKm
routes {
totalDistanceKm
totalTimeSeconds
stages {
fromUuid
fromName
fromLat
fromLon
toUuid
toName
toLat
toLon
distanceKm
travelTimeSeconds
transportType
}
}
}
}