You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/azure-functions/functions-add-output-binding-cosmos-db-vs-code.md
+3-6Lines changed: 3 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -220,9 +220,7 @@ A binding is added to the `bindings` array in your *function.json*, which should
220
220
221
221
# [v2](#tab/v2)
222
222
223
-
Binding attributes are defined directly in the *function_app.py* file. You use the queue_output decorator to add an [Azure Cosmos DB output binding](/azure/azure-functions/functions-bindings-triggers-python#azure-cosmos-db-output-binding).
224
-
225
-
Add the following decorator to your function code in *function_app.py*:
223
+
Binding attributes are defined directly in the *function_app.py* file. You use the `cosmos_db_output` decorator to add an [Azure Cosmos DB output binding](/azure/azure-functions/functions-bindings-triggers-python#azure-cosmos-db-output-binding):
@@ -386,7 +384,7 @@ The document `{"id": "name"}` is created in the database collection specified in
386
384
387
385
# [v2](#tab/v2)
388
386
389
-
Update *HttpExample\\function_app.py* to match the following code, add the `outputDocument` parameter to the function definition and `outputDocument.set()` under the `if name:` statement:
387
+
Update *HttpExample\\function_app.py* to match the following code. Add the `outputDocument` parameter to the function definition and `outputDocument.set()` under the `if name:` statement:
0 commit comments