@payloadcms/db-mongodb
TypeScript icon, indicating that this package has built-in type declarations

1.4.3 • Public • Published

Payload MongoDB Adapter

Official MongoDB adapter for Payload.

Installation

npm install @payloadcms/db-mongodb

Usage

import { buildConfig } from 'payload/config'
import { mongooseAdapter } from '@payloadcms/db-mongodb'

export default buildConfig({
  db: mongooseAdapter({
    url: process.env.DATABASE_URI,
  }),
  // ...rest of config
})

More detailed usage can be found in the Payload Docs.

Readme

Keywords

none

Package Sidebar

Install

npm i @payloadcms/db-mongodb

Weekly Downloads

15,011

Version

1.4.3

License

MIT

Unpacked Size

361 kB

Total Files

131

Last publish

Collaborators

  • jesschow
  • jarrodmflesch
  • danribbens
  • elliotpayload
  • jacobsfletch
  • payloadjs