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