简体   繁体   中英

Using query params in Azure functions and Cosmos DB

I'm using Azure Functions to retrieve data from a Cosmos DB. No I have the following SQL query:

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}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM