The blog of Blog of Christian Bär

Posts

Querying Cosmos Containers Containing Items of Various Types

Querying Cosmos Containers Containing Items of Various Types Problem When querying Cosmos DB from C# code it’s convenient to use Linq. When you only want to get documents of one type, this is straightforward using GetItemLinqQueryable<T>(). When you want to get documents of multiple types, each having different properties but you want to restrict the returned documents by a condition that spans fields that are not common to all of these types, you’re in trouble. [...]