sap-cap-mongodb
A CAP service reading and writing MongoDB from hand-written handlers that replace the persistence layer while keeping the CDS model and service, with a UI5 front end over the v2 proxy.
There is no CAP database adapter for MongoDBMongoDBA document database. Reached from CAP through an adapter over Mongoose rather than through the SQL database services., and this does not write one. It keeps the CDS model and the service definition and then replaces the persistence with this.on("READ", …) handlers calling the mongodb driver directly, so it shows what is left of CAP once the database layer is gone: the model, the service and the protocol. The code is on the SAPUI5 branch, which is the one the post links to — main is not it.
Facts
Where it sits
Who is behind it
In the atlas: maintains 1, contributes to 1, wrote 1@krish469maintainer
Before choosing this
Signals
LicenceNo licenseNeither the package manifest nor the repository tree declares a licence
Without a licence the default is all rights reserved. Ask the maintainer, or check for terms stated elsewhere, before depending on it.
What it declares
Every artifact
- Type
- Sample
- Origin
- Independently maintained
- Runtime
- Node.js
As a sample
- Form
- A tutorial's companion code
Connections
Connecting a data model and its queries to a database
A document database. Reached from CAP through an adapter over Mongoose rather than through the SQL database services.
Download
Learn more
- My Learnings in SAP-CAP Using MongoDBMy Learnings in SAP-CAP Using MongoDBCAP against a document database, which the supported list does not include — and the way it gets there is the point. The CDS model and the service definitions stay; the persistence is replaced by handlers calling the mongodb driver, with @sap/cds-odata-v2-adapter-proxy in front so a UI5 application can consume it. Learnings rather than a supported path, and the only MongoDB entry here.published 2021-01-11krish469, SAP Community
README
quoted from krish469/sap-cap-mongodb, readGetting Started
Welcome to your new project.
It contains these folders and files, following our recommended project layout:
| File or Folder | Purpose | Comments |
|---|---|---|
app/ | content for UI frontends goes here | UI for this project is handled by SAPUI5 |
db/ | your domain models and data go here | We have defined models for Order and Material |
srv/ | your service models and code go here | Service Definition and Implementation files are available here |
package.json | project metadata and configuration | All required packages are mentioned here |
readme.md | this getting started guide | Steps and necessary information to execute the Project is mentioned here |
Details
Sources
Sources are graph entities: the same page may back several entries, and an unreachable source flags every row that rests on it.
Compatibility and provenance
History in the atlas
- First seen.
For your agent
- Ref
artifact:krish469-sap-cap-mongodb- JSON
- /artifacts/krish469-sap-cap-mongodb.json
- MCP
- Connecting an agent