sachabruttin / CosmosDbExplorer

A nice client explorer for Azure Cosmos DB

Home Page:https://www.bruttin.com/CosmosDbExplorer/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Feature Request] Collection menu with default queries

dprice opened this issue · comments

It would be great to have a right-click menu option on either Collection\Items tree node that would contains some pre-defined generic queries that would open in a SQL query view.

Here's an example from LINQPad:

image

NOTE: The above expressions are in C# but you get the idea. Microsoft's SQL Server Management Studio has something similar.

I would love to help but I know nothing about WPF development. I added these commands to the right-click menu:

image

in CosmosDbExplorer\src\CosmosDbExplorer\Views\DatabaseView.xaml, but have no idea how to pass the information to the QueryEditorViewModel.Load() method to know how to inject the correct SQL. Any suggestions?