AbstractAbstractcountReturns the number of documents matching the given SodaOperation query criteria. If skip() or limit() are set, then an exception will be thrown.
a result object with a count field containing the number of matching documents.
AbstractfetchSets the size of an internal buffer used for fetching documents from a collection with the terminal SodaOperation methods getCursor() and getDocuments().
the buffer size to use.
the SodaOperation object.
AbstractfilterSets a filter specification for the operation, allowing for complex document queries and ordering of JSON documents.
the filter specification to use.
the SodaOperation object.
AbstractgetReturns a SodaDocumentCursor for documents that match the SodaOperation query criteria.
a cursor that can be used to iterate over the matched documents.
AbstractgetGets an array of SodaDocuments matching the SodaOperation query criteria.
an array of documents, empty if none match.
AbstractgetObtains one document matching the SodaOperation query criteria. If more than one document is matched, then only the first is returned.
the first matching document, or undefined if none match.
AbstractkeySets the key value to be used to match a document for the operation. Any previous calls made to this method or keys() will be ignored.
the search key to use.
the SodaOperation object.
AbstractkeysSets the keys to be used to match multiple documents for the operation. Any previous calls made to this method or key() will be ignored.
the search keys to use.
the SodaOperation object.
AbstractlimitSets the maximum number of documents that a terminal method will apply to.
the maximum number of documents to return. Must be greater than 0.
the SodaOperation object.
AbstractremoveRemoves a set of documents matching the SodaOperation query criteria. If skip() or limit() are set they are ignored.
a result object with a count field containing the number of removed documents.
AbstractreplaceReplaces a document in a collection. The input document can be either a JavaScript object representing the data content, or it can be an existing SodaDocument. The key() non-terminal must be used when using replaceOne().
the new content or SodaDocument.
a result object with a boolean replaced field which will be true if the document was replaced successfully and false otherwise.
AbstractreplaceReplaces a document in a collection and return the result document which contains all SodaDocument components except for the content.
the new content or SodaDocument.
The updated SodaDocument if replacement was successful, otherwise undefined.
AbstractskipSets the number of documents that will be skipped before the terminal method is applied. n must be greater than or equal to 0.
the number of documents to skip.
the SodaOperation object.
AbstractversionSets the document version that retrieved documents must have.
the version of retrieved documents.
the SodaOperation object.
SODA find operation class. This class is used to search and retrieve SODA documents from a SodaCollection. It provides non-terminal search condition operations and terminal SodaDocument retrieval operations.
See
https://github.com/oracle/node-oracledb/blob/v5.0.0/doc/api.md#sodaoperationclass