Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Published by Scroll Versions from space WBRIDGE and version 21.1c

...

Multiexcerpt
MultiExcerptNamefetch
NameTypeDirectionDescription
handleMongoDBHandleinHandle to a result set that has been created by a find action.
resultStringResulting document in JSON format.outFetched document. Depending on the type specified on this parameter, the resulting document is either presented in extended JSON format (String), or serialized into  model structures (<document class>).
<document class>Objects of an xUML class representing the document structure.

Anchor
aggregate
aggregate

Action "aggregate"

Multiexcerpt
MultiExcerptNameaggregate
NameTypeDirectionDescription
databaseStringin

Multiexcerpt include
MultiExcerptNamedatabase
PageWithExcerptMongoDB

collectionStringin

Multiexcerpt include
MultiExcerptNamecollection
PageWithExcerptMongoDB

pipelineArray of Stringin
Pipeline you want to use with aggregation.


Multiexcerpt
MultiExcerptNamepipeline
Each array element must be a MongDB pipeline step as valid JSON.
handleMongoDBHandleoutHandle to a result set. You can use fetch to get documents from this result set.
result

Array of String

Array of all resulting documents in JSON format.out

Multiexcerpt include
MultiExcerptNameresult
PageWithExcerptMongoDB

Array of <document class>Array of objects of an xUML class representing the document structure.

Anchor
insert
insert

Action "insert"

Multiexcerpt
MultiExcerptNameinsert
NameTypeDirectionDescription
databaseStringin

Multiexcerpt include
MultiExcerptNamedatabase
PageWithExcerptMongoDB

collectionStringin

Multiexcerpt include
MultiExcerptNamecollection
PageWithExcerptMongoDB

document<document class>inA data structure representing the document you want to insert. The data structure will be serialized.
documentsArray of <document class>inArray of documents you want to insert. Each array element is treated as a single document parameter and all of them will be inserted.

...

Multiexcerpt
MultiExcerptNameupdate
NameTypeDirectionDescriptionAllowed Values / Examples
databaseStringin

Multiexcerpt include
MultiExcerptNamedatabase
PageWithExcerptMongoDB


collectionStringin

Multiexcerpt include
MultiExcerptNamecollection
PageWithExcerptMongoDB


pipelineArray of Stringin

Pipeline you want to use with update.

Multiexcerpt include
MultiExcerptNamepipeline
PageWithExcerptMongoDB


optionsMongoDBUpdateOptionsinMongoDB options for update.
nullificationsArray of Stringin

An array of database fields to be set to NULL upon update.

The elements of the path to the field within the corresponding document are to be separated by a dot (see examples). You can use arrays with that notation (see example) only if arrayFilters have been provided with the MongoDB update options.

customer.address
customer.address.street
customer.phoneArray.$[elem].number
removalsArray of Stringin

An array of database fields to be removed upon update.

The elements of the path to the field within the corresponding document are to be separated by a dot (see examples). You can use arrays with that notation (see example) only if arrayFilters have been provided with the MongoDB update options.

customer.address
customer.address.street
customer.phoneArray.$[elem].number
queryStringStringin
Multiexcerpt include
MultiExcerptNamequeryString
PageWithExcerptMongoDB
MongoDB query string as valid JSON
documentAny <document class>in

A data structure representing the document you want to insert. For this, the following rules apply:

  • unset top-level fields will be skipped
  • complex fields will be replaced entirely



updateStringStringin

MongoDB JSON update string.

Info

In contrast to the MongoDB shell, the JSON keys must be quoted properly.

Refer to Querying MongoDB for a comprehensive explanation of how to build an update string and the implications.

MongoDB update string as valid JSON

{ "$set": {
      "address": {
            "city": "Dallas"
      }
}
{ "$set": {
     "address.city": "Dallas"
     }
}
rowsAffectedIntegerout
Multiexcerpt
MultiExcerptNamerowsAffected

Returns how many rows have been affected by the action.

Info

This information may be unavailable depending on the acknowledgement settings on the <<MongoDBAlias>>. If the Runtime cannot retrieve this information, rowsAffected will be NULL.


Anchor
replace
replace

Action "replace"

Multiexcerpt
MultiExcerptNameupdate
NameTypeDirectionDescriptionAllowed Values / Examples
databaseStringin

Multiexcerpt include
MultiExcerptNamedatabase
PageWithExcerptMongoDB


collectionStringin

Multiexcerpt include
MultiExcerptNamecollection
PageWithExcerptMongoDB


optionsMongoDBReplaceOptionsinMongoDB options for replace.
queryStringStringin
Multiexcerpt include
MultiExcerptNamequeryString
PageWithExcerptMongoDB
MongoDB query string as valid JSON
documentAny <document class>in

A data structure representing the document you want to replace the selected document with. The old stored document will be replaced by the new one, the MongoDB _id, however, will not change.



rowsAffectedIntegerout
Multiexcerpt include
MultiExcerptNamerowsAffected
PageWithExcerptMongoDB

Anchor
delete
delete

Action "delete"

Multiexcerpt
MultiExcerptNameupdate
NameTypeDirectionDescriptionAllowed Values / Examples
databaseStringin

Multiexcerpt include
MultiExcerptNamedatabase
PageWithExcerptMongoDB


collectionStringin

Multiexcerpt include
MultiExcerptNamecollection
PageWithExcerptMongoDB


queryStringStringin
Multiexcerpt include
MultiExcerptNamequeryString
PageWithExcerptMongoDB
MongoDB query string as valid JSON
rowsAffectedIntegerout
Multiexcerpt include
MultiExcerptNamerowsAffected
PageWithExcerptMongoDB

...