public Task <DocumentMetadata[]> GetMetadataAsync <T>(DocumentQuery query, CancellationToken cancellationToken) { return(_transaction.QueryMetadataAsync(_mapper.GetDocumentType <T>(), query, cancellationToken)); }
public async Task <T[]> GetAsync <T>(DocumentQuery query, CancellationToken cancellationToken) { DocumentRow[] rows = await _transaction.QueryAsync(_mapper.GetDocumentType <T>(), query, cancellationToken); return(rows.Select(r => _mapper.RowToDocument <T>(r)).ToArray()); }