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 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 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...
{     "_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...
Is it possible to use javascript promises instead of regular callbacks within CosmosDB (DocumentDB) stored procedure API calls? An usage would be implementing pagination.  For example  token = getToken(); doSomething(token);      //.... function getT...
I have been using C# to run operations on a DocumentDB instance and really like it so far.  I have a lot of C# code that queries from multiple collections to create new collections from the relationships between the first two collections.  Can I esse...
How can I get or figure out the size of a document stored in Cosmos DB?  Is this something already stored within document?...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.