* fix: filterOptions errors cause transaction to abort * fix(db-mongodb): uncaught abortTransaction race condition * chore: remove test that is not adding value * chore: limit options on errors in filterOptions * chore: limit options when an error occurs in filterOptions
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.