22 lines
447 B
TypeScript
22 lines
447 B
TypeScript
import type { CollectionConfig } from '../../../../packages/payload/src/collections/config/types'
|
|
|
|
export const arrayCollectionSlug = 'array-fields'
|
|
|
|
export const ArrayCollection: CollectionConfig = {
|
|
slug: arrayCollectionSlug,
|
|
fields: [
|
|
{
|
|
name: 'items',
|
|
type: 'array',
|
|
localized: true,
|
|
fields: [
|
|
{
|
|
name: 'text',
|
|
type: 'text',
|
|
required: true,
|
|
},
|
|
],
|
|
},
|
|
],
|
|
}
|