Exciting release!Introducing "safe npm". Learn more
Socket
Log inDemoInstall

@amplication/plugin-db-mongo

Package Overview
Dependencies
0
Maintainers
7
Versions
39
Issues
File Explorer

Advanced tools

@amplication/plugin-db-mongo

Use a Mongo database in a service generated by Amplication

    1.2.9latest
    npm

Version published
Maintainers
7
Weekly downloads
277
increased by5.73%

Weekly downloads

Readme

Source

@amplication/plugin-db-mongo

NPM Downloads

Use a Mongo DB database in the service generated by Amplication.

Purpose

This plugin adds the required code to use Mongo database in the service generated by Amplication. It updates the following parts:

  • Updates the datasource on the schema.prisma file
  • Adds the requires services and variables to docker-compose.yml
  • Replaces the docker-compose-db.yml
  • Add the requires environment variables to .env
  • Update package json file in order to support only the relevant prisma mongo commands
  • Change prisma schema fields according to the prisma mongo conventions

Configuration

The plugin uses the parameters configured on the database tab on the service settings page

image

Usage

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

Last updated on 28 Mar 2023

Did you know?

Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.

Install Socket
Socket
support@socket.devSocket SOC 2 Logo

Product

  • Package Issues
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc