Is it possible to edit an entity with a one-to-many relation?
{
id: 1,
title: 'Title',
tags: [
{ id: 1 },
{ id: 2 },
],
}
Here is the code snippet:
<Form.Item
name={["tags", "id"]}
>
<Select mode={'multiple'} {...selectProps} />
</Form.Item>
After submitting, I receive this object:
{
id: 1,
title: 'Title',
tags: { id: [1, 2]},
}
How can I retrieve tags as an array of objects instead?