Instantly share code, notes, and snippets.

Embed
What would you like to do?
Create a new item in a Document DB through an SQL query (warning: unsafe!)
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