Fix geo GraphQL schema mismatch: camelCase → snake_case
All checks were successful
Build Docker Image / build (push) Successful in 5m46s
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:
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user