MCPcopy Create free account

hub / github.com/Azure/azure-cosmosdb-js-server / functions

Functions85 in github.com/Azure/azure-cosmosdb-js-server

↓ 43 callersFunctionsprintf
(format)
utils/DocDbWrapperScript.js:58
↓ 30 callersFunctioncallback
(err, doc, options)
samples/stored-procedures/BulkImport.js:44
↓ 15 callersFunctionvalidateOptionsAndCallback
(optionsIn, callbackIn)
utils/DocDbWrapperScript.js:289
↓ 7 callersFunctionvalidateDocumentLink
(docLink, isAttachmentsSegmentAllowed)
utils/DocDbWrapperScript.js:347
↓ 6 callersFunctioncheckAccepted
(isAccepted)
samples/triggers/uniqueConstraint.js:132
↓ 5 callersFunctiongetHexaDigit
()
utils/DocDbWrapperScript.js:420
↓ 5 callersFunctionvalidateSize
(propertyName, value, currentSize, maxSizePropertyName)
utils/DocDbWrapperScript.js:170
↓ 4 callersFunctiongenerateUniqueIdValue
(doc, uniquePropertyName)
samples/triggers/uniqueConstraint.js:128
↓ 4 callersFunctionvalidateCollectionLink
(collLink)
utils/DocDbWrapperScript.js:317
↓ 3 callersFunctioninsertMetaDoc
()
samples/triggers/uniqueConstraint.js:98
↓ 3 callersFunctionvalidateAttachmentLink
(attLink)
utils/DocDbWrapperScript.js:394
↓ 2 callersFunctionappendValueInternal
(propertyName, propertyValue)
utils/DocDbWrapperScript.js:136
↓ 2 callersFunctiongenerateGuidId
()
utils/DocDbWrapperScript.js:424
↓ 2 callersFunctiongetValueInternal
(propertyName)
utils/DocDbWrapperScript.js:114
↓ 2 callersFunctionhandleError
(err)
utils/DocDbWrapperScript.js:1270
↓ 2 callersFunctioninitializeCollectionObject
()
utils/DocDbWrapperScript.js:1662
↓ 2 callersFunctionisNullOrUndefined
(x)
utils/DocDbWrapperScript.js:52
↓ 2 callersFunctionreplaceMetaDocId
(oldDoc)
samples/triggers/uniqueConstraint.js:111
↓ 2 callersFunctionsetBody
(continuationToken)
samples/stored-procedures/sum.js:80
↓ 2 callersFunctionsetBody
(continuationToken)
samples/stored-procedures/Count.js:61
↓ 2 callersFunctionsetValueInternal
(propertyName, propertyValue)
utils/DocDbWrapperScript.js:121
↓ 2 callersFunctiontryCreate
(doc, callback)
samples/stored-procedures/BulkImport.js:31
↓ 2 callersFunctiontryQuery
(nextContinuationToken)
samples/stored-procedures/sum.js:38
↓ 2 callersFunctiontryQuery
(nextContinuationToken)
samples/stored-procedures/Count.js:23
↓ 2 callersFunctiontryQueryAndDelete
(continuation)
samples/stored-procedures/bulkDelete.js:27
↓ 1 callersFunctionaddToSet
(document, update)
samples/stored-procedures/update.js:245
↓ 1 callersFunctioncanonicalizeWeekDay
(day)
samples/triggers/CanonicalizeSchedule.js:19
↓ 1 callersFunctioncreateGenericAccessors
(hasWritableProperties, objToCreateIn)
utils/DocDbWrapperScript.js:203
↓ 1 callersFunctioncreateSpecificAccessors
(propName, isWritable, objToCreateIn)
utils/DocDbWrapperScript.js:186
↓ 1 callersFunctioncurrentDate
(document, update)
samples/stored-procedures/update.js:231
↓ 1 callersFunctiondocDbSetupRequestResponseObjects
()
utils/DocDbWrapperScript.js:72
↓ 1 callersFunctiongetAndUpdateMetadata
()
samples/triggers/UpdateMetadata.js:22
↓ 1 callersFunctioninc
(document, update)
samples/stored-procedures/update.js:114
↓ 1 callersFunctionmax
(document, update)
samples/stored-procedures/update.js:217
↓ 1 callersFunctionmin
(document, update)
samples/stored-procedures/update.js:203
↓ 1 callersFunctionmul
(document, update)
samples/stored-procedures/update.js:135
↓ 1 callersFunctiononCreate
()
samples/triggers/uniqueConstraint.js:49
↓ 1 callersFunctiononDelete
()
samples/triggers/uniqueConstraint.js:53
↓ 1 callersFunctiononReplace
()
samples/triggers/uniqueConstraint.js:64
↓ 1 callersFunctiononUpsert
()
samples/triggers/uniqueConstraint.js:79
↓ 1 callersFunctionpop
(document, update)
samples/stored-procedures/update.js:265
↓ 1 callersFunctionpush
(document, update)
samples/stored-procedures/update.js:287
↓ 1 callersFunctionquery
(responseOptions)
samples/stored-procedures/sum.js:50
↓ 1 callersFunctionquery
(responseOptions)
samples/stored-procedures/Count.js:35
↓ 1 callersFunctionrename
(document, update)
samples/stored-procedures/update.js:156
↓ 1 callersFunctionset
(document, update)
samples/stored-procedures/update.js:179
↓ 1 callersFunctionsetupContextObjects
()
utils/DocDbWrapperScript.js:1694
↓ 1 callersFunctiontryDelete
(documents)
samples/stored-procedures/bulkDelete.js:56
↓ 1 callersFunctiontryQueryAndUpdate
(continuation)
samples/stored-procedures/update.js:51
↓ 1 callersFunctiontryUpdate
(document)
samples/stored-procedures/update.js:80
↓ 1 callersFunctionunset
(document, update)
samples/stored-procedures/update.js:191
FunctionDocDbCollection
()
utils/DocDbWrapperScript.js:315
FunctionDocDbContext
()
utils/DocDbWrapperScript.js:1685
FunctionDocDbMap
(docDbPropertyMap)
utils/DocDbWrapperScript.js:100
FunctionDocDb__
()
utils/DocDbWrapperScript.js:1184
FunctionProxy
()
utils/DocDbWrapperScript.js:1563
FunctionbulkDeleteSproc
* A Cosmos DB stored procedure that bulk deletes documents for a given query.<br/> * Note: You may need to execute this sproc multiple times (depend
samples/stored-procedures/bulkDelete.js:11
FunctionbulkImport
* This script called as stored procedure to import lots of documents in one batch. * The script sets response body to the number of docs imported and
samples/stored-procedures/BulkImport.js:7
FunctioncanonicalizeOptions
(options, queryObject, userCallback)
utils/DocDbWrapperScript.js:1255
FunctioncompletionCallback
(queryObject, userCallback, err, response)
utils/DocDbWrapperScript.js:1269
FunctioncontinueJavaScriptQuery
(prevQueryObject, options, userCallback, queryFunctionChained, queryFunctionPlain, callbackObject)
utils/DocDbWrapperScript.js:1340
Functioncount
* This is executed as stored procedure to count the number of docs in the collection. * To avoid script timeout on the server when there are lots of
samples/stored-procedures/Count.js:11
FunctiondefaultUserCallback
(err, feed, options)
utils/DocDbWrapperScript.js:1247
FunctiondefineJSQueryFunctions
(objectToAddTo, queryObject)
utils/DocDbWrapperScript.js:1291
FunctionfilterImpl
(feed, predicateFn)
utils/DocDbWrapperScript.js:1196
Functionflatten
(prevQueryObject, collectionObject, isShallow, options, userCallback)
utils/DocDbWrapperScript.js:1417
FunctionflattenImpl
(isShallow, feed)
utils/DocDbWrapperScript.js:1210
FunctionjavaScriptQuery
(prevQueryObject, queryFunctionName, collectionObject, predicateCallback, options, userCallback, actualFunctio
utils/DocDbWrapperScript.js:1372
FunctionmapImpl
(feed, transformFn)
utils/DocDbWrapperScript.js:1201
FunctiononReadDocuments
(err, docFeed, responseOptions)
samples/stored-procedures/sum.js:58
FunctiononReadDocuments
(err, docFeed, responseOptions)
samples/stored-procedures/Count.js:43
FunctionpassThroughImpl
(feed)
utils/DocDbWrapperScript.js:1206
Functionpluck
(prevQueryObject, collectionObject, propertyName, options, callback)
utils/DocDbWrapperScript.js:1530
Functionpropagate
()
utils/DocDbWrapperScript.js:1293
Functionproxy
(captures)
utils/DocDbWrapperScript.js:1562
FunctionsetupSpatial
()
utils/DocDbWrapperScript.js:1570
Functionsimple
* This is run as stored procedure and does the following: * - get 1st document in the collection, convert to JSON, prepend string specified by the pr
samples/stored-procedures/SimpleScript.js:8
Functionsum
* This is executed as a stored procedure to compute the sum of a specified feature in a collection. * To avoid script timeout on the server when there
samples/stored-procedures/sum.js:12
Functiontax
* This is run as user defined function and does the following: * For given document (CompanyRecord), compute the tax and return it. * * @param {D
samples/user-defined-functions/Tax.js:7
FunctionuniqueConstraint
()
samples/triggers/uniqueConstraint.js:21
Functionunwind
(prevQueryObject, collectionObject, collectionSelector, resultSelector, options, userCallback)
utils/DocDbWrapperScript.js:1467
FunctionunwindImpl
(feed, collectionAndResultSelectors)
utils/DocDbWrapperScript.js:1221
FunctionupdateMetadata
* This script runs as a trigger: * for each inserted document, look at document.size and update aggregate properties of metadata document: minSize, m
samples/triggers/UpdateMetadata.js:5
FunctionupdateSproc
* A Cosmos DB stored procedure that updates a document by id, using a similar syntax to MongoDB's update operator.<br/> * <br/> * The following op
samples/stored-procedures/update.js:38
FunctionvalidateClass
* This script runs as a pre-trigger when a document is inserted: * for each inserted document, validate/canonicalize document.weekday and create fiel
samples/triggers/CanonicalizeSchedule.js:5