Created
October 11, 2018 08:30
-
-
Save andijakl/f8b51d379c1bd12a7d6e1344373b4055 to your computer and use it in GitHub Desktop.
Create a new item in a Document DB through an SQL query (warning: unsafe!)
This file contains 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
const queryResponse = await container.items.query( | |
"SELECT * FROM c WHERE c.id='" + newItemId + "'").toArray(); | |
console.log(queryResponse.result[0].name); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment