SampleSampletypeA worked example you read or clone. Evidence: it demonstrates, it never provides.See every one →What this type is →independently maintainedindependently maintainedoriginPublished by one person or a small company outside SAP. Says nothing about quality; the readings say that.See every one →

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 MongoDB, 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

Last push

Where it sits

Lives in
Demonstrates
Database connectorsCAPDatabase connectorscapabilityConnecting an application’s data model and queries to a database, including the differences in supported queries, types and schema management between database implementations. Changing an existing schema belongs to [schema evolution](capability:schema-evolution).
Flavors
Node.jsfrom its runtime
Requires
MongoDBMongoDBoutside the atlasNamed as a dependency in its documentation.

Who is behind it

krish469krish469PersonMaintains this
In the atlas: maintains 1, contributes to 1, wrote 1
@krish469
maintainer

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

Connections2

sap-cap-mongodb connectionssap-cap-mongodbPROVIDES→ demonstrates1demonstrates authoredDatabase connectorsNEEDS→ needs1needs authoredMongoDB

Learn more1

Readings
  1. My Learnings in SAP-CAP Using MongoDBkrish469, SAP Community

README

quoted from krish469/sap-cap-mongodb, read
krish469/sap-cap-mongodb/README.mdOn GitHub

Getting Started

Welcome to your new project.

It contains these folders and files, following our recommended project layout:

File or FolderPurposeComments
app/content for UI frontends goes hereUI for this project is handled by SAPUI5
db/your domain models and data go hereWe have defined models for Order and Material
srv/your service models and code go hereService Definition and Implementation files are available here
package.jsonproject metadata and configurationAll required packages are mentioned here
readme.mdthis getting started guideSteps and necessary information to execute the Project is mentioned here
excerpt, no licence read, read the rest, on GitHub

Details

Sources3
SAP Communitydiscovered here, cap-tagchecked
github.com/krish469/sap-cap-mongodbtree, pushes, contributors, CIchecked
README.mdquoted, and what the entry declareschecked

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
runtimesnode
discovered viaSAP Community · cap-tag
first seen in the atlas
ecosystem and domaincap, data-and-persistence
History in the atlas1
  1. First seen.
For your agent
Ref
artifact:krish469-sap-cap-mongodb
JSON
/artifacts/krish469-sap-cap-mongodb.json
MCP
Connecting an agent