comAtprotoRepoListRecords function

Future<XRPCResponse<RepoListRecordsOutput>> comAtprotoRepoListRecords({
  1. required String repo,
  2. required String collection,
  3. int? limit,
  4. String? cursor,
  5. bool? reverse,
  6. required ServiceContext $ctx,
  7. Map<String, String>? $headers,
  8. Map<String, String>? $unknown,
})

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

Implementation

Future<XRPCResponse<RepoListRecordsOutput>> comAtprotoRepoListRecords({
  required String repo,
  required String collection,
  int? limit,
  String? cursor,
  bool? reverse,
  required ServiceContext $ctx,
  Map<String, String>? $headers,
  Map<String, String>? $unknown,
}) async => await $ctx.get(
  ns.comAtprotoRepoListRecords,
  headers: $headers,
  parameters: {
    ...?$unknown,
    'repo': repo,
    'collection': collection,
    if (limit != null) 'limit': limit,
    if (cursor != null) 'cursor': cursor,
    if (reverse != null) 'reverse': reverse,
  },
  to: const RepoListRecordsOutputConverter().fromJson,
);