nodeboot-starter-persistence-mongodb
Installation
SKILL.md
@nodeboot/starter-persistence — MongoDB flavour
Load ../nodeboot-starter-persistence/SKILL.md first
for the shared basics (@EnableRepositories(), @DataRepository, transactions). This skill covers
what's specific to persistence.type: mongodb.
Fresh start or existing app?
Read ../_shared/fresh-vs-existing.md first, then apply it
here:
- Fresh start:
npx degit nodejs-boot/node-boot/samples/sample-express-mongodb my-app— the canonical MongoDB reference sample, including cursor-based paging and entity subscribers. - Existing app: check
persistence.type: mongodbinapp-config.yaml. There is nosrc/persistence/migrations/folder in the Mongo flavour (TypeORM migrations don't apply to Mongo) — its absence alongside a Mongo config is a strong signal this is already the MongoDB flavour, not just an unconfigured SQL app.