queryKeys method

Future<List<String>> queryKeys(
  1. Filter filter
)

Queries a subset of keys from the store.

Uses the given filter to get a filtered view of elements of the store from the server. Check the Filter docs to read how you can filter. Returns the keys of all entries that match the filter.

Note: This is not more efficient than using query. This sends the exact same request as query, but omits the values of the returned data and only returns the keys. It is faster in that it skips the deserialization of values, but the network costs are the same.

Implementation

Future<List<String>> queryKeys(Filter filter) async {
  final response = await restApi.get(
    path: _buildPath(),
    filter: filter,
  );
  return (response.data as Map<String, dynamic>?)?.keys.toList() ?? [];
}