filterCoding method

  1. @override
Future<PaginatedListCoding?> filterCoding(
  1. Filter<Coding> filter, {
  2. String? nextCodingId,
  3. int? limit,
})
override

Load codings from the database by filtering them using the provided filter.

Filters are complex selectors that are built by combining basic building blocks. Examples of filters available for Coding are AllCodingsFilter and CodingsByIdsFilter. This method returns a paginated list of coding (with a cursor that lets you query the following items).

Parameters:

  • Filter filter (required): The Filter object that describes which condition(s) the elements whose the ids should be returned must fulfill

  • String nextCodingId: The id of the first coding in the next page

  • int limit: The number of codings to return in the queried page

Implementation

@override
Future<PaginatedListCoding?> filterCoding(
  Filter<Coding> filter, {
  String? nextCodingId,
  int? limit,
}) async {
  return (await api.baseCodeApi.filterCodesBy(filterChainCode: base_api.FilterChain<base_api.CodeDto>(filter.toAbstractFilterDto()), startDocumentId: nextCodingId, limit: limit))
      ?.toPaginatedListCoding();
}