I have been trying to connect an authors collection to a posts collection so that the inputer only has to select from a dropdown of authors.
- { label: 'Author',
name: 'author',
widget: 'relation',
collection: 'authors',
searchFields: ['name'],
displayFields: ['name'],
valueField: 'name'
}
The problem with the relation widget its that valueField
only excepts one field property. Unlike its counterparts that can except an array. But I need all author properties. Does anyone have a solution for this? I have been looking for hours and haven’t found anything that would do what I need. Any help is greatly appreciated. Thanks in advance.
FYI: Using Nuxtjs