From 4516e1b8fbdc60fa48a220730b4de9f53a18c133 Mon Sep 17 00:00:00 2001 From: aditishree1 <141712869+aditishree1@users.noreply.github.com> Date: Mon, 22 Jul 2024 09:44:22 +0530 Subject: [PATCH] updated non-streamable query in README (#29782) ### Packages impacted by this PR @azure/cosmos ### Issues associated with this PR ### Describe the problem that is addressed by this PR Updated non-streamable cross-partition query in README ### What are the possible designs available to address the problem? If there are more than one possible design, why was the one in this PR chosen? ### Are there test cases added in this PR? _(If not, why?)_ ### Provide a list of related PRs _(if any)_ ### Command used to generate this PR:**_(Applicable only to SDK release request PRs)_ ### Checklists - [ ] Added impacted package name to the issue description - [ ] Does this PR needs any fixes in the SDK Generator?** _(If so, create an Issue in the [Autorest/typescript](https://github.com/Azure/autorest.typescript) repository and link it here)_ - [ ] Added a changelog (if necessary) --------- Co-authored-by: Aditishree . --- sdk/cosmosdb/cosmos/README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sdk/cosmosdb/cosmos/README.md b/sdk/cosmosdb/cosmos/README.md index 0b83faf671f9..ad9be41394e8 100644 --- a/sdk/cosmosdb/cosmos/README.md +++ b/sdk/cosmosdb/cosmos/README.md @@ -506,8 +506,7 @@ To execute non-streamable queries without the use of continuation tokens, you ca ```javascript const querySpec = { - query: "SELECT * FROM c WHERE c.status = @status", - parameters: [{ name: "@status", value: "active" }], + query: "SELECT c.status, COUNT(c.id) AS count FROM c GROUP BY c.status", }; const queryOptions = { maxItemCount: 10, // maximum number of items to return per page