# DynamoDBStorage.QueryAllAsync(string, Dictionary&lt;string, AttributeValue&gt;, string, Func&lt;Dictionary&lt;string, AttributeValue&gt;, TResult&gt;, CancellationToken, string, bool, bool)

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.transactions.dynamodb/orleans.transactions.dynamodb.dynamodbstorage/) | [Methods](/orleans/docs/api/csharp/microsoft.orleans.transactions.dynamodb/orleans.transactions.dynamodb.dynamodbstorage/methods/)

[Source](https://github.com/dotnet/orleans/blob/8bc9fd244427351ad24ccc039a9e7642a42c1cc4/src/AWS/Shared/Storage/DynamoDBStorage.cs#L878)

```csharp
public Task<List<TResult>> QueryAllAsync<TResult>(string tableName, Dictionary<string, AttributeValue> keys, string keyConditionExpression, Func<Dictionary<string, AttributeValue>, TResult> resolver, CancellationToken cancellationToken, string indexName = "", bool scanIndexForward = true, bool consistentRead = true)
```

Queries all matching entries using the supplied cancellation token.

### Parameters

- `tableName` (`string`): The table name.
- `keys` (`Dictionary<string, AttributeValue>`): The key condition values.
- `keyConditionExpression` (`string`): The expression filtering the keys.
- `resolver` (`Func<Dictionary<string, AttributeValue>, TResult>`): Converts each entry to the result type.
- `cancellationToken` (`CancellationToken`): The cancellation token.
- `indexName` (`string`): The optional secondary index name.
- `scanIndexForward` (`bool`): Whether the index is read in ascending order.
- `consistentRead` (`bool`): Whether reads must be strongly consistent.
