get method

Future<List<Blob>> get({
  1. QueryBuilder query(
    1. Collection collection
    )?,
  2. int? count,
})

Implementation

Future<List<Blob>> get({QueryBuilder Function(Collection collection)? query, int? count}) async {
  QueryBuilder builder = query != null ? query(_collection) : _collection.builder;
  if (count != null) builder = builder.limit(count);
  final documents = await builder.get();
  return documents
      .map(
        (document) => Blob(id: document.id, metadata: document, blobDiskDriver: _blobDiskDriver),
      )
      .toList();
}