Azure / azure-cosmosdb-js-server

The JavaScript SDK for server-side programming in Azure Cosmos DB
MIT License
179 stars 152 forks source link

query returns empty results retrievedDocs #45

Open jamilhaddadin opened 4 years ago

jamilhaddadin commented 4 years ago

This line returns empty results:

For this query: SELECT * FROM c

var isAccepted = collection.queryDocuments(collectionLink, query, requestOptions, function (err, retrievedDocs, responseOptions) {

anurag-ae commented 4 years ago

I am also facing the same issue.

jggcabana commented 3 years ago

Most likely the partition key is wrong. Execute the sp from the portal and enter a partition key from your collection.