Questions tagged [azure-cosmosdb]

Microsoft's Azure Cosmos DB is a cutting-edge, serverless distributed database solution that seamlessly handles both NoSQL and relational workloads. With the ability to distribute data globally across all Azure regions, your information is replicated to wherever your users are located. This powerful platform supports open-source database engines such as PostgreSQL, MongoDB, and Cassandra, giving developers the flexibility they need. Enjoy automatic scalability, top-of-the-line security features, and affordable consumption-based pricing options.

Establish a connection to Cosmos DB from local code by utilizing the DefaultAzureCredential method

I've created a Typescript script to retrieve items from a Cosmos DB container, utilizing the DefaultAzureCredential for authentication. However, I'm encountering a 403 error indicating insufficient permissions, which is puzzling since I am the administrato ...

Efficiently transferring JSON files to Azure Cosmos DB using Java Code in bulk

I need help with creating a JSON file using JAVA. The file will have multiple JSONs in it. My goal is to automatically import this file into Azure Cosmos DB once it's been generated. Is there a Java-based solution for achieving this task? Thank you in ad ...

Reload the MEN stack webpage without the need to reload the entire page

I am in the process of developing a data analytics dashboard using the MEN stack (MongoDB, Express.js, Node.js). I have successfully implemented functionality to display real-time data that refreshes every 5 seconds without the need to reload the entire ...

Azure App Service encounters ENOBUFS error when connecting to COSMOS DB

I am currently running node version 10.6.0 and connecting to Azure COSMOS DB using 'MongoCllient'. Here's a snippet of my code: index.js var MongodbConnectionString = process.env.COSMOS; server.post('/api/test/',(req,res,next) =& ...

Issue encountered with connection string for CosmosDB emulator using MongoDB: Invalid character detected in host identifier

I've been attempting to link my NodeJs application with the CosmosDb emulator on localhost: https://i.stack.imgur.com/VkAiC.png Within my azure resource group, I have set up a cosmodb instance of type MongoDB https://i.stack.imgur.com/v8KRx.png To ...

Utilizing DocumentDB with a Proxy in NodeJS: Step-by-step Guide

When working with NodeJS and trying to connect to a Cosmos DB using the Documentdb library, I encountered an issue as described in the getting starter of the azure documentation's TODO List Example. You can find the tutorial here. The connection code I us ...

Parameterized Azure Cosmos DB Stored Procedure

I am currently learning about Azure Cosmos Db, and I am in the process of developing a simple JavaScript stored procedure that will return a document if a specific Id is provided. However, when I run the stored procedure, I do not receive a "no docs foun ...

When setting up an Azure Cosmos DB container, what is the purpose of selecting the offerThroughput option?

When creating a container programmatically, there are various ways to specify throughput in the documentation. What are the differences between the following configurations? // A. Create with default throughput? const { container } = await database.contain ...