Fix geo GraphQL schema mismatch: camelCase → snake_case
All checks were successful
Build Docker Image / build (push) Successful in 5m46s

All geo .graphql operations and consuming code updated to match
server schema which uses snake_case field/argument names.
Removed non-existent QuoteCalculations query, using NearestOffers instead.
This commit is contained in:
Ruslan Bakiev
2026-03-09 21:45:57 +07:00
parent 15563991df
commit 25f946b293
34 changed files with 504 additions and 744 deletions

View File

@@ -1,34 +1,34 @@
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) {
nearest_offers(lat: $lat, lon: $lon, radius: $radius, product_uuid: $productUuid, hub_uuid: $hubUuid, limit: $limit) {
uuid
productUuid
productName
supplierUuid
supplierName
product_uuid
product_name
supplier_uuid
supplier_name
latitude
longitude
country
countryCode
pricePerUnit
country_code
price_per_unit
currency
quantity
unit
distanceKm
distance_km
routes {
totalDistanceKm
totalTimeSeconds
total_distance_km
total_time_seconds
stages {
fromUuid
fromName
fromLat
fromLon
toUuid
toName
toLat
toLon
distanceKm
travelTimeSeconds
transportType
from_uuid
from_name
from_lat
from_lon
to_uuid
to_name
to_lat
to_lon
distance_km
travel_time_seconds
transport_type
}
}
}