dapr / docs

Dapr user documentation, used to build docs.dapr.io
https://docs.dapr.io
Creative Commons Attribution 4.0 International
987 stars 715 forks source link

CosmosDb query #4211

Open qxecutioner opened 1 week ago

qxecutioner commented 1 week ago

Problem: There should be docs on how querying works on CosmosDB

Description: Provide all options and documentation on querying CosmosDB

Where to place: https://docs.dapr.io/reference/components-reference/supported-state-stores/setup-azure-cosmosdb/

WhitWaldo commented 1 week ago

Dapr isn't an ORM and doesn't provide any sort of rich query system for state management; rather, it's simply providing simple key/value state interactions. While there exists an query API documented here for all supporting state stores containing JSON data, it's in a permanent alpha state and is no longer being iterated on.

My recommendation is that if you need to create and submit SQL queries against Cosmos or another database, you use their SDK directly in your microservice.