简体   繁体   English

在 Azure 函数和 Cosmos DB 中使用查询参数

[英]Using query params in Azure functions and Cosmos DB

I'm using Azure Functions to retrieve data from a Cosmos DB.我正在使用 Azure Functions 从 Cosmos DB 检索数据。 No I have the following SQL query:不,我有以下 SQL 查询:

SELECT * FROM r WHERE r.city = {city} AND r.district = {district} AND r.max_number_of_people = {people}

Well, I found a way to accomplish what I want.好吧,我找到了一种方法来完成我想要的。 It may not be the only way.这可能不是唯一的方法。

SELECT * FROM r WHERE r.city = {city} AND r.district = {district} AND ToString(r.max_number_of_people) = {people}

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 使用Azure Functions和Azure Cosmos DB时出现问题,返回“停机进行维护” - Problem using Azure Functions and Azure Cosmos DB, returning “down for maintenance” 基于时间戳Azure存储表/ Azure Cosmos DB进行查询 - Query on the basis of Timestamp Azure Storage Table/Azure Cosmos DB 使用适用于 Node 的 Azure 移动应用程序在 Cosmos DB 上执行 SQL 查询联接 - Executing SQL query joins on Cosmos DB using Azure Mobile Apps for Node 使用'$ in'查询的Azure Cosmos DB(MongoDB)find()不返回任何内容 - Azure Cosmos DB (mongodb) find() with '$in' query not returning anything 如何从我的 azure cosmos db 中查询数据? - How can i query data from my azure cosmos db? 如何使用 Node.js 在 Azure Cosmos DB 中执行 SQL 查询 - How Execute SQL Query in Azure Cosmos DB with Node.js 如何使用nodejs sdk更改azure cosmos db容器的吞吐量? - how to change throughput of azure cosmos db container using nodejs sdk? 无法在使用 Express 和 Azure Cosmos DB 的 Angular 应用程序中配置 MongoDB - Unable to configure MongoDB in Angular application that is using Express and Azure Cosmos DB Azure Serverless 使用 javascript 将数据插入 Cosmos dB - Azure Serverless Insert data into Cosmos dB using javascript 是否可以使用变量从 function 中动态调用 SQL 查询 Azure 函数的 Cosmos DB 输入绑定? - Can the SQL query for an Azure Function's Cosmos DB input binding be called dynamically, with variables, from within the function?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM