HashPartitionResolver.ResolveForRead
Method
Definition
Given a partition key, returns a list of collection links to read from using its hash in the Azure DocumentDB database service.
public virtual System.Collections.Generic.IEnumerable<string> ResolveForRead (object partitionKey);
Parameters
- partitionKey
- Object
The partition key used to determine the target collections for reading. Must be a string.
Returns
The list of target collection links.
Exceptions
Thrown if the partition key is not a string.
Remarks
If partitionKey is null, then all collections are returned. The HashPartitionResolver supports only strings as partitionKeys. For other types, use ToString() or JsonConvert.SerializeObject() to convert to string.