Updates V3 with V2 PR's - previousVersion type https://github.com/payloadcms/payload/pull/6805 - tests from https://github.com/payloadcms/payload/pull/6805
15 lines
338 B
TypeScript
15 lines
338 B
TypeScript
import type { CollectionConfig } from 'payload'
|
|
|
|
import { collectionSlugs } from '../../shared.js'
|
|
|
|
export const PrevValueRelation: CollectionConfig = {
|
|
slug: collectionSlugs.prevValueRelation,
|
|
fields: [
|
|
{
|
|
relationTo: collectionSlugs.prevValue,
|
|
name: 'previousValueRelation',
|
|
type: 'relationship',
|
|
},
|
|
],
|
|
}
|