listRecords method

Future<XRPCResponse<ListRecordsOutput>> listRecords({
  1. String? repo,
  2. required NSID collection,
  3. int? limit,
  4. String? cursor,
  5. String? rkeyStart,
  6. String? rkeyEnd,
  7. bool? reverse,
  8. Map<String, String>? $unknown,
  9. Map<String, String>? $headers,
  10. GetClient? $client,
})

List a range of records in a repository, matching a specific collection. Does not require auth.

https://atprotodart.com/docs/lexicons/com/atproto/repo/listRecords

Implementation

Future<XRPCResponse<ListRecordsOutput>> listRecords({
  String? repo,
  required NSID collection,
  int? limit,
  String? cursor,
  String? rkeyStart,
  String? rkeyEnd,
  bool? reverse,
  Map<String, String>? $unknown,
  Map<String, String>? $headers,
  GetClient? $client,
}) async =>
    await _ctx.get<ListRecordsOutput>(
      ns.comAtprotoRepoListRecords,
      headers: $headers,
      parameters: {
        'repo': repo ?? _ctx.repo,
        'collection': collection.toString(),
        if (limit != null) 'limit': limit.toString(),
        if (cursor != null) 'cursor': cursor,
        if (rkeyStart != null) 'rkeyStart': rkeyStart,
        if (rkeyEnd != null) 'rkeyEnd': rkeyEnd,
        if (reverse != null) 'reverse': reverse.toString(),
        ...?$unknown,
      },
      to: const ListRecordsOutputConverter().fromJson,
      client: $client,
    );