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.
36 lines
745 B
GraphQL
36 lines
745 B
GraphQL
query NearestOffers($lat: Float!, $lon: Float!, $radius: Float, $productUuid: String, $hubUuid: String, $limit: Int) {
|
|
nearest_offers(lat: $lat, lon: $lon, radius: $radius, product_uuid: $productUuid, hub_uuid: $hubUuid, limit: $limit) {
|
|
uuid
|
|
product_uuid
|
|
product_name
|
|
supplier_uuid
|
|
supplier_name
|
|
latitude
|
|
longitude
|
|
country
|
|
country_code
|
|
price_per_unit
|
|
currency
|
|
quantity
|
|
unit
|
|
distance_km
|
|
routes {
|
|
total_distance_km
|
|
total_time_seconds
|
|
stages {
|
|
from_uuid
|
|
from_name
|
|
from_lat
|
|
from_lon
|
|
to_uuid
|
|
to_name
|
|
to_lat
|
|
to_lon
|
|
distance_km
|
|
travel_time_seconds
|
|
transport_type
|
|
}
|
|
}
|
|
}
|
|
}
|