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:
@@ -1,5 +1,5 @@
|
||||
query HubsList($limit: Int, $offset: Int, $country: String, $transportType: String) {
|
||||
hubsList(limit: $limit, offset: $offset, country: $country, transportType: $transportType) {
|
||||
query HubsList($limit: Int, $offset: Int, $country: String, $transportType: String, $west: Float, $south: Float, $east: Float, $north: Float) {
|
||||
hubsList(limit: $limit, offset: $offset, country: $country, transportType: $transportType, west: $west, south: $south, east: $east, north: $north) {
|
||||
uuid
|
||||
name
|
||||
latitude
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
query ProductsList($limit: Int, $offset: Int) {
|
||||
productsList(limit: $limit, offset: $offset) {
|
||||
query ProductsList($limit: Int, $offset: Int, $west: Float, $south: Float, $east: Float, $north: Float) {
|
||||
productsList(limit: $limit, offset: $offset, west: $west, south: $south, east: $east, north: $north) {
|
||||
uuid
|
||||
name
|
||||
offersCount
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
query SuppliersList($limit: Int, $offset: Int, $country: String) {
|
||||
suppliersList(limit: $limit, offset: $offset, country: $country) {
|
||||
query SuppliersList($limit: Int, $offset: Int, $country: String, $west: Float, $south: Float, $east: Float, $north: Float) {
|
||||
suppliersList(limit: $limit, offset: $offset, country: $country, west: $west, south: $south, east: $east, north: $north) {
|
||||
uuid
|
||||
name
|
||||
latitude
|
||||
|
||||
Reference in New Issue
Block a user