feat(catalog): add bounds filtering to list queries
Some checks failed
Build Docker Image / build (push) Has been cancelled
Some checks failed
Build Docker Image / build (push) Has been cancelled
- Add west/south/east/north params to HubsList, SuppliersList, ProductsList GraphQL - Update useCatalogHubs to pass bounds to query - Update useCatalogSuppliers to pass bounds to query - Update useCatalogProducts to pass bounds to query
This commit is contained in:
@@ -47,7 +47,16 @@ export function useCatalogSuppliers() {
|
||||
// Default: fetch all suppliers from GEO (graph-based)
|
||||
const data = await execute(
|
||||
SuppliersListDocument,
|
||||
{ limit: PAGE_SIZE, offset },
|
||||
{
|
||||
limit: PAGE_SIZE,
|
||||
offset,
|
||||
...(filterBounds.value && {
|
||||
west: filterBounds.value.west,
|
||||
south: filterBounds.value.south,
|
||||
east: filterBounds.value.east,
|
||||
north: filterBounds.value.north
|
||||
})
|
||||
},
|
||||
'public',
|
||||
'geo'
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user