@@ -2,4 +2,4 @@
|
||||
'@backstage/plugin-catalog-backend': minor
|
||||
---
|
||||
|
||||
Implemented the `POST /locations/by-query` endpoints that allows paginated, filtered location queries
|
||||
Implemented the `POST /locations/by-query` endpoint which allows paginated, filtered location queries
|
||||
|
||||
@@ -697,7 +697,7 @@ export interface CatalogApi {
|
||||
*
|
||||
* ```
|
||||
* const secondBatchResponse = await catalogClient
|
||||
* .queryLocations({ cursor: response.nextCursor });
|
||||
* .queryLocations({ cursor: response.pageInfo.nextCursor });
|
||||
* ```
|
||||
*
|
||||
* `secondBatchResponse` will contain the next batch of (maximum) 20 locations,
|
||||
|
||||
@@ -76,7 +76,7 @@ export class DefaultLocationService implements LocationService {
|
||||
|
||||
async queryLocations(options: {
|
||||
limit: number;
|
||||
afterId: string;
|
||||
afterId?: string;
|
||||
query?: FilterPredicate;
|
||||
credentials: BackstageCredentials;
|
||||
}): Promise<{ items: Location[]; totalItems: number }> {
|
||||
|
||||
Reference in New Issue
Block a user