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'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...
{     "_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...
How can I get or figure out the size of a document stored in Cosmos DB?  Is this something already stored within document?...
The documentation states equivalence for the code snippets below. But in the first case I can do operations on the documents collection inside the callback function, while the map function in the latter only works on one document. I do want to group...
I have the following method that queries documentdb for a document and returns the results to the caller.  fetch: function(query) {     var fetchDeferred = q.defer();     client.queryDocuments(collectionLink, query).toArray(function(err, docs) {...
I am trying to create a stored procedure that my app can call to run operations on a SQL cosmos DB in azure. I'm developing this using the Azure portal.  I generated a sample procedure, which is shown below.  // SAMPLE STORED PROCEDURE function...
I have JSON like   {   "id": "58d99ca3231f13b9ecbbbca4",   "50records": [     {       "aomsLineNbr": 1,       "licenses": [         {           "productKey": "84fc2cde-9735-4cea-b97a-3cd627d3d0a5...
as a total JavaScript beginner, how do I actually develop for it? I mean, I've seen https://azure.microsoft.com/en-us/documentation/articles/documentdb-programming/ but there was no mentioning of a development environment.  Is there something lik...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.