Hi, I had the same problem and solved it as:
- In the function.json I removed the sqlQuery line.
- I actually had a point where the CosmoDB "direction" was missing (???) so I entered it again and moved the entire block of cosmoDB up in the json structure as:.
{
"bindings": [
{
"authLevel": "function",
"type": "httpTrigger",
"direction": "in",
"name": "Request",
"methods": [
"get",
"post"
]
},
{
"direction": "in",
"type": "cosmosDB",
"connectionStringSetting": "wtudorin_DOCUMENTDB",
"name": "bookmark",
"databaseName": "func-io-learn-db",
"collectionName": "Bookmarks",
"id": "{id}",
"partitionKey": "{id}"
},
{
"type": "http",
"direction": "out",
"name": "Response"
}
]
}
I went back to "Integration" page and clicked on CosmoDB Input and it appeared that all settings were missing so I re-entered them as listed in the function.json.
After that it all worked.
Also to be sure I Stopped and Started the Function-App as well.