Files
payload/test/fields/collections/Point/index.ts
2022-07-18 23:50:28 -04:00

44 lines
769 B
TypeScript

import type { CollectionConfig } from '../../../../src/collections/config/types';
export const pointFieldsSlug = 'point-fields';
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',
localized: true,
},
{
type: 'group',
name: 'group',
fields: [
{
name: 'point',
type: 'point',
},
],
},
],
};
export const pointDoc = {
point: [7, -7],
localized: [5, -2],
group: { point: [1, 9] },
};
export default PointFields;