sachabruttin / CosmosDbExplorer

A nice client explorer for Azure Cosmos DB
https://www.bruttin.com/CosmosDbExplorer/
MIT License
107 stars 27 forks source link

[Feature Request] Collection menu with default queries #88

Closed dprice closed 1 year ago

dprice commented 1 year ago

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.

dprice commented 1 year ago

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?