Closed gavnyx closed 6 days ago
Hey @gavnyx , you can just save the PHP array in the field:
$authors = [
[id => '', name => ''],
[id => '', name => ''],
[id => '', name => ''],
...
];
$model->authors = $authors;
$model->save();
See https://opensearch.pdphilip.com/nested-queries for querying nested data
Hi, I have a question, how to save record to nested data type with this package ?
example field map like this :