#I want to show name of menus in relationTo : But I found only id .

2 messages · Page 1 of 1 (latest)

twin solstice
#

***code block : ***
import type { CollectionConfig } from 'payload/types'
import MenuDropdown from '@/components/MenuDropdown'

export const SubMenu: CollectionConfig = {
slug: 'sub-menu',
fields: [
{
name: 'category',
type: 'relationship',
relationTo: 'menu',
},
],
}

carmine quartzBOT