Skip to content

Instantly share code, notes, and snippets.

@ealsur ealsur/function.json
Last active Jan 19, 2018

Embed
What would you like to do?
Azure Cosmos DB + Functions Cookbook - HTTP query json
{
"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
You can’t perform that action at this time.