Class: MongoService

vertx-mongo-js/mongo_service~ MongoService

new MongoService()

Source:

Methods

close()

Source:

count(collection, query, resultHandler) → {MongoService}

Parameters:
Name Type Description
collection string
query Object
resultHandler function
Source:
Returns:
Type
MongoService

createCollection(collectionName, resultHandler) → {MongoService}

Parameters:
Name Type Description
collectionName string
resultHandler function
Source:
Returns:
Type
MongoService

createIndex(collection, key, resultHandler) → {MongoService}

Parameters:
Name Type Description
collection string
key Object
resultHandler function
Source:
Returns:
Type
MongoService

createIndexWithOptions(collection, key, options, resultHandler) → {MongoService}

Parameters:
Name Type Description
collection string
key Object
options Object
resultHandler function
Source:
Returns:
Type
MongoService

distinct(collection, fieldName, resultClassname, resultHandler) → {MongoService}

Parameters:
Name Type Description
collection string
fieldName string
resultClassname string
resultHandler function
Source:
Returns:
Type
MongoService

distinctBatch(collection, fieldName, resultClassname, resultHandler) → {MongoService}

Parameters:
Name Type Description
collection string
fieldName string
resultClassname string
resultHandler function
Source:
Returns:
Type
MongoService

dropCollection(collection, resultHandler) → {MongoService}

Parameters:
Name Type Description
collection string
resultHandler function
Source:
Returns:
Type
MongoService

dropIndex(collection, indexName, resultHandler) → {MongoService}

Parameters:
Name Type Description
collection string
indexName string
resultHandler function
Source:
Returns:
Type
MongoService

find(collection, query, resultHandler) → {MongoService}

Parameters:
Name Type Description
collection string
query Object
resultHandler function
Source:
Returns:
Type
MongoService

findBatch(collection, query, resultHandler) → {MongoService}

Parameters:
Name Type Description
collection string
query Object
resultHandler function
Source:
Returns:
Type
MongoService

findBatchWithOptions(collection, query, options, resultHandler) → {MongoService}

Parameters:
Name Type Description
collection string
query Object
options Object
resultHandler function
Source:
Returns:
Type
MongoService

findOne(collection, query, fields, resultHandler) → {MongoService}

Parameters:
Name Type Description
collection string
query Object
fields Object
resultHandler function
Source:
Returns:
Type
MongoService

findOneAndDelete(collection, query, resultHandler) → {MongoService}

Parameters:
Name Type Description
collection string
query Object
resultHandler function
Source:
Returns:
Type
MongoService

findOneAndDeleteWithOptions(collection, query, findOptions, resultHandler) → {MongoService}

Parameters:
Name Type Description
collection string
query Object
findOptions Object
resultHandler function
Source:
Returns:
Type
MongoService

findOneAndReplace(collection, query, replace, resultHandler) → {MongoService}

Parameters:
Name Type Description
collection string
query Object
replace Object
resultHandler function
Source:
Returns:
Type
MongoService

findOneAndReplaceWithOptions(collection, query, update, findOptions, updateOptions, resultHandler) → {MongoService}

Parameters:
Name Type Description
collection string
query Object
update Object
findOptions Object
updateOptions Object
resultHandler function
Source:
Returns:
Type
MongoService

findOneAndUpdate(collection, query, update, resultHandler) → {MongoService}

Parameters:
Name Type Description
collection string
query Object
update Object
resultHandler function
Source:
Returns:
Type
MongoService

findOneAndUpdateWithOptions(collection, query, update, findOptions, updateOptions, resultHandler) → {MongoService}

Parameters:
Name Type Description
collection string
query Object
update Object
findOptions Object
updateOptions Object
resultHandler function
Source:
Returns:
Type
MongoService

findWithOptions(collection, query, options, resultHandler) → {MongoService}

Parameters:
Name Type Description
collection string
query Object
options Object
resultHandler function
Source:
Returns:
Type
MongoService

getCollections(resultHandler) → {MongoService}

Parameters:
Name Type Description
resultHandler function
Source:
Returns:
Type
MongoService

insert(collection, document, resultHandler) → {MongoService}

Parameters:
Name Type Description
collection string
document Object
resultHandler function
Source:
Returns:
Type
MongoService

insertWithOptions(collection, document, writeOption, resultHandler) → {MongoService}

Parameters:
Name Type Description
collection string
document Object
writeOption Object
resultHandler function
Source:
Returns:
Type
MongoService

listIndexes(collection, resultHandler) → {MongoService}

Parameters:
Name Type Description
collection string
resultHandler function
Source:
Returns:
Type
MongoService

remove(collection, query, resultHandler) → {MongoService}

Parameters:
Name Type Description
collection string
query Object
resultHandler function
Source:
Returns:
Type
MongoService

removeDocument(collection, query, resultHandler) → {MongoService}

Parameters:
Name Type Description
collection string
query Object
resultHandler function
Source:
Returns:
Type
MongoService

removeDocuments(collection, query, resultHandler) → {MongoService}

Parameters:
Name Type Description
collection string
query Object
resultHandler function
Source:
Returns:
Type
MongoService

removeDocumentsWithOptions(collection, query, writeOption, resultHandler) → {MongoService}

Parameters:
Name Type Description
collection string
query Object
writeOption Object
resultHandler function
Source:
Returns:
Type
MongoService

removeDocumentWithOptions(collection, query, writeOption, resultHandler) → {MongoService}

Parameters:
Name Type Description
collection string
query Object
writeOption Object
resultHandler function
Source:
Returns:
Type
MongoService

removeOne(collection, query, resultHandler) → {MongoService}

Parameters:
Name Type Description
collection string
query Object
resultHandler function
Source:
Returns:
Type
MongoService

removeOneWithOptions(collection, query, writeOption, resultHandler) → {MongoService}

Parameters:
Name Type Description
collection string
query Object
writeOption Object
resultHandler function
Source:
Returns:
Type
MongoService

removeWithOptions(collection, query, writeOption, resultHandler) → {MongoService}

Parameters:
Name Type Description
collection string
query Object
writeOption Object
resultHandler function
Source:
Returns:
Type
MongoService

replace(collection, query, replace, resultHandler) → {MongoService}

Parameters:
Name Type Description
collection string
query Object
replace Object
resultHandler function
Source:
Returns:
Type
MongoService

replaceDocuments(collection, query, replace, resultHandler) → {MongoService}

Parameters:
Name Type Description
collection string
query Object
replace Object
resultHandler function
Source:
Returns:
Type
MongoService

replaceDocumentsWithOptions(collection, query, replace, options, resultHandler) → {MongoService}

Parameters:
Name Type Description
collection string
query Object
replace Object
options Object
resultHandler function
Source:
Returns:
Type
MongoService

replaceWithOptions(collection, query, replace, options, resultHandler) → {MongoService}

Parameters:
Name Type Description
collection string
query Object
replace Object
options Object
resultHandler function
Source:
Returns:
Type
MongoService

runCommand(commandName, command, resultHandler) → {MongoService}

Parameters:
Name Type Description
commandName string
command Object
resultHandler function
Source:
Returns:
Type
MongoService

save(collection, document, resultHandler) → {MongoService}

Parameters:
Name Type Description
collection string
document Object
resultHandler function
Source:
Returns:
Type
MongoService

saveWithOptions(collection, document, writeOption, resultHandler) → {MongoService}

Parameters:
Name Type Description
collection string
document Object
writeOption Object
resultHandler function
Source:
Returns:
Type
MongoService

update(collection, query, update, resultHandler) → {MongoService}

Parameters:
Name Type Description
collection string
query Object
update Object
resultHandler function
Source:
Returns:
Type
MongoService

updateCollection(collection, query, update, resultHandler) → {MongoService}

Parameters:
Name Type Description
collection string
query Object
update Object
resultHandler function
Source:
Returns:
Type
MongoService

updateCollectionWithOptions(collection, query, update, options, resultHandler) → {MongoService}

Parameters:
Name Type Description
collection string
query Object
update Object
options Object
resultHandler function
Source:
Returns:
Type
MongoService

updateWithOptions(collection, query, update, options, resultHandler) → {MongoService}

Parameters:
Name Type Description
collection string
query Object
update Object
options Object
resultHandler function
Source:
Returns:
Type
MongoService