Files
payload/test/fields/collections/Point/index.ts
2024-03-19 00:59:56 -04:00

39 lines
663 B
TypeScript

import type { CollectionConfig } from 'payload/types'
import { pointFieldsSlug } from '../../slugs.js'
const PointFields: CollectionConfig = {
slug: pointFieldsSlug,
admin: {
useAsTitle: 'point',
},
versions: true,
fields: [
{
name: 'point',
type: 'point',
label: 'Location',
required: true,
},
{
name: 'localized',
type: 'point',
label: 'Localized Point',
unique: true,
localized: true,
},
{
type: 'group',
name: 'group',
fields: [
{
name: 'point',
type: 'point',
},
],
},
],
}
export default PointFields