DEV Community

Discussion on: Azure Cosmos DB Basics

Collapse
 
manu_vr profile image
Manu Radhakrishnan

Hi @rupeshtiwari ,

Do you have any idea about this issue

stackoverflow.com/questions/677993...

We have tried the below:

var queryable = this.container.GetItemLinqQueryable();
var query = queryable.Where(x => c.DynamicContent["MailingAddress"] == "mail@exp.com");
var iterator = query.ToFeedIterator();
var cosmosResponse = await iterator.ReadNextAsync();

But it throws an error "An expression tree may not contain a dynamic operation".