-
Notifications
You must be signed in to change notification settings - Fork 15
Closed
Description
Is it possible to created a relationship object in the same request that creates other object?
For example:
If I have an Entity Student
with a OneToMany
relationship with Grade
, can i pass something like this to the POST /students
endpoint and have it create both the Student
and the Grade
?
{
"data": {
"type": "student",
"attributes": {
"name": "John Doe",
},
"relationships": {
"grades": {
"data": [{
"attributes": {
"score": "A"
}
}]
}
}
}
}
Metadata
Metadata
Assignees
Labels
No labels