Security News
Input Validation Vulnerabilities Dominate MITRE's 2024 CWE Top 25 List
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
@amplication/plugin-db-mongo
Advanced tools
Use a Mongo DB database in the service generated by Amplication.
This plugin adds the required code to use Mongo database in the service generated by Amplication. It updates the following parts:
schema.prisma
file:
1.3.3
the datesource name is based on the database type
mongo
1.3.3
the datasource name is db
, no matter what is the database type1.3.3
as the datasouce name is db
, all the custom attributes that use the @{datasource.name}.{nameOfTheAttribute}
are replaced with @db.{nameOfTheAttribute}
docker-compose.yml
db
service to the docker-compose.dev.yml
.env
The plugin uses the parameters configured on the database tab on the service settings page
This plugin integrates with the all default tasks and scripts used by the generated service:
"seed": "ts-node scripts/seed.ts",
"db:clean": "ts-node scripts/clean.ts",
"prisma:generate": "prisma generate",
"prisma:init": "prisma init",
"prisma:pull":"prisma db pull",
"prisma:push":" prisma db push",
"docker:db": "docker-compose -f docker-compose.db.yml up -d",
"docker:build": "docker build .",
"compose:up": "docker-compose up -d",
"compose:down": "docker-compose down --volumes"
FAQs
Use a Mongo database in a service generated by Amplication
The npm package @amplication/plugin-db-mongo receives a total of 152,677 weekly downloads. As such, @amplication/plugin-db-mongo popularity was classified as popular.
We found that @amplication/plugin-db-mongo demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 8 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.