Node.JS – How-To Patch CosmosDB Collections and Nested Items

This will be a bit of a reference guide to updating a CosmosDB collections and nested items in a nice manner. This thread will not cover how to use the CosmosDB package in Node.JS and it will assume you’ve successfully connected to a database.

I will use the example of updating the signature of a user of a forum where that signature is stored in a collection which is the overall thread and then nested collections which are the individual comments.

Continue reading “Node.JS – How-To Patch CosmosDB Collections and Nested Items”

Simple Node.js Express CosmosDB Pagination

I struggled to find a simple example of how I could return paginated results from an Azure CosmosDB from a Node.js Express application. Luckily, I eventually came across a brilliant article by Elio Struyf which can be found here – Retrieving the CosmosDB query continuation token in Node.js. I’ll post my complete example of pagination from CosmosDB below and explain how it works. The Solution … Continue reading Simple Node.js Express CosmosDB Pagination