Versions Compared

Key

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

This page explains the MongoDB Adapter in Bridge context. If you were looking for the same information regarding the PAS Designer, refer to MongoDB Adapter in the Designer guide.

Runtime 2021.2 Builder 7.12.0 Besides a generic SQL Database Management System (see SQL Adapter), the Bridge supports MongoDB - a NoSQL and document oriented database. MongoDB support is native and you do not need to install any client tools or drivers.

Using the MongoDB adapter, you can

TaskAdapter ActionDescriptionDocumentation Reference
Insert and update documentsinsertInsert new documents to a database.
replaceReplace one or more documents by a new one. The documents are identified by a query.
updateUpdate all or dedicated properties of one or more documents with new values. The documents are identified by a query.
Retrieve documents/informationfindGet a result set based on a provided query. You can get the result set all at once, or fetch single documents via a handle (see fetch).
fetchFetch single records from a result set that has been retrieved by find.
aggregateAggregate data based on a query and MongoDB pipelines.
Remove documentsdeleteRemove one or documents from the database. The documents are identified by a query.

To use the MongoDB adapter it is helpful if you are familiar with the concepts of MongoDB.

Note

As opposed to standard JSON, with MongoDB the order of keys does matter. Action script statement classToJSON(), however, does not guarantee to preserve the order presented in the class. In many cases that will work but it may behave unexpectedly wrong.

So, with the MongoDB adapter use classToExtendedJSON().

Multiexcerpt include
SpaceWithExcerptINTERNAL
MultiExcerptNamemongodb
PageWithExcerptINTERNAL:_examples_BRIDGE

rp
Panel
titleRelated Pages:

Children Display

rde
Panel
titleRelated Documentation: