Thomas Levesque 7/15/2019

Using TypeScript to write Cosmos DB stored procedures with async/await

Read Original

This article explains how to overcome the limitation of writing Cosmos DB stored procedures in callback-based JavaScript. It provides a solution for C# and TypeScript developers by demonstrating how to create promise-based wrapper functions for Cosmos DB APIs, enabling the use of modern async/await syntax for cleaner and more manageable transactional code.

Using TypeScript to write Cosmos DB stored procedures with async/await

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week

1
The Beautiful Web
Jens Oliver Meiert 2 votes
3
LLM Use in the Python Source Code
Miguel Grinberg 1 votes
4
Wagon’s algorithm in Python
John D. Cook 1 votes