I am creating a query to cosmos using Linq
This is converted into SQL which is then run to do the search
var modelName = "Mondeo";
var baseQuery = client.CreateDocumentQuery<Car>(StaticSettings.ProjectionsCollectionUri,
new FeedOptions { MaxItemCount = maxItemCount, PartitionKey = new PartitionKey(partitionKey) })
.Where(order => car.ModelName == modelName);
If I run this code and put a breakpoint after this statement, I can see the raw SQL query generated
This is shown in the first line of the inspector
{{"query":"SQL HERE"}}
How can I get to this via code?
I am looking to get to this SQL to ensure that it is what I want it to be and I can use it in my tests
Paul