I did try that with #1.
{
data: {
attributes: {...attributes},
relationships: {
authors: [{type: "author", name: "Eliel", email: "q232"}]
}
}
}
This got somewhere but seems to need an id attribute in the relationship. When I add that none of the other attributes in the relationship make it to the changeset attributes under authors.
The other way was to put the relationship in the attributes
{
data: {
attributes: {
...attributes,
authors: [{name: "Eliel", email: "q232"}]
},
}
}
This did not work either, gave a invalid attribute error


















