Closed
Description
Bulk add and setting relation simultaneously
Are bulk operations possible when simultaneously creating relations ?
In this test articles are added while also adding authors using local ids.
However, my current case is a bit different. Consider the request below
PATCH api/bulk HTTP/1.1
Content-Type: application/vnd.api+json
Accept: application/vnd.api+json
{
"operations": {
"op": "add",
"data": {
"type": "article",
"attributes": {
"title": "Ember Hamster",
"content": "some content"
},
"relationships": {
"author": {
"data": {
"type": "people",
"id": "9"
}
}
}
}
}
}
I.e. I am not creating a new author, I'm only trying to set a relation to an already existing author. (This is possible in normal requests, see these specs ).
Is this currently supported?
Is it correct that this line suggests that it is not supported, because the included
argument is not being passed?
If this isn't supported, any pointers on what to override?
Environment
- JsonApiDotNetCore Version: latest beta