Last active
January 19, 2018 15:11
-
-
Save ealsur/c958715219564e38fa1756a1a244aedd to your computer and use it in GitHub Desktop.
Azure Cosmos DB + Functions Cookbook - HTTP query json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"bindings": [ | |
{ | |
"name": "query", | |
"type": "httpTrigger", | |
"direction": "in" | |
}, | |
{ | |
"name": "$return", | |
"type": "http", | |
"direction": "out" | |
}, | |
{ | |
"type": "documentDB", | |
"name": "documents", | |
"databaseName": "<your-database-name>", | |
"collectionName": "<your-collection-name>", | |
"sqlQuery": "SELECT * FROM d WHERE d.name = {Name} and d.city = {City}", | |
"connection": "<connectionstring-setting-name>", | |
"direction": "in" | |
} | |
], | |
"disabled": false | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment