Files
payload/test/admin-root/collections/Posts/index.ts
2024-07-23 13:44:44 -04:00

20 lines
302 B
TypeScript

import type { CollectionConfig } from 'payload'
export const postsSlug = 'posts'
export const PostsCollection: CollectionConfig = {
slug: postsSlug,
admin: {
useAsTitle: 'text',
},
fields: [
{
name: 'text',
type: 'text',
},
],
versions: {
drafts: true,
},
}