Port of https://github.com/payloadcms/payload/pull/8331 to 2.0 Previosuly, trying to append a new item to an array that contains another array with localized items and enabled versions led to a unique `_locale` and `_parent_id` error ```ts { name: 'nestedArrayLocalized', type: 'array', fields: [ { type: 'array', name: 'array', fields: [ { name: 'text', type: 'text', localized: true, }, ], }, ], } ```
Payload Postgres Adapter
Official Postgres adapter for Payload.
Installation
npm install @payloadcms/db-postgres
Usage
import { buildConfig } from 'payload/config'
import { postgresAdapter } from '@payloadcms/db-postgres'
export default buildConfig({
db: postgresAdapter({
pool: {
connectionString: process.env.DATABASE_URI,
}
}),
// ...rest of config
})
More detailed usage can be found in the Payload Docs.