Using the V2 Javascript SDK for CosmosDb, I'm getting the TOP 10 items from the db:  var query = "SELECT TOP 10 * FROM People"  const querySpec = {     query: query };  var result = await container.items.query(querySpec).toArray();   How...
I want to retrieve data from my DocumentDB database without a middleware, because I have to implement this into my Ionic App.  I followed this documentation from Microsoft, and even used the exact same code from this documentation (with Browserify)....
I am trying to create a stored procedure to delete documents in Cosmos Db by using a query. Once the query returns the documents, I would like all the documents to be deleted.  I tried using the script from this website but this requires putting one...
I am trying to debug a stored procedure or a script written in Microsoft Azure CosmosDB 'Script Explorer' using javascript. I put several console.log() messages so that I could trace my proc and I couldn't find where those log messages ar...
I'm trying to rewrite a retry function with callbacks into a Bluebird promise one but can't seem to get my head around the correct way of doing this. At the bottom is the working callback function for retrying Azure DocumentDB when limit is m...
I was trying to write a query which is finding MAX value from all documents. The scenario is something like I have 100 Students Documents, in which student Name, roll number as well as array of Tests inside that array of Subject and its respective ma...
I am working with Azure Cosmos DB, I am programming the client side in C# (web service) and I'm writing some server side Stored Procedures with java-script.  How can I debug my stored procedure's code?  Thanks,  MAK...
I am trying to create a new gremlin client in node js, but I cannot find any documentation how to set up the connection with both a URL and a primary key (as generated in Azure CosmosDB).  Examples are available how to do this in versions < v3, su...
{     "_id" : ObjectId("59660d4099c1e682e0992ced"),     "alpha" : [         {             "_id" : ObjectId("59660d4199c1e682e0992cee"),             "number" : 1,             "start_at" : ISODate...
I Have the following code..  async function bulkInsert(db, collectionName, documents) {   try {     const cosmosResults = await db.collection(collectionName).insertMany(documents);     console.log(cosmosResults);     return cosmosResults   } catch (e...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.