Hello, is there a way to make the association definition to pick up nested resources from the JSON payload?
Let's say we have a Shop model with Articles and Employees, but the JSON payload when fetching the Shop is the following :
{
"id": 1,
"resources": {
"employees": [],
"articles": [],
}
}
How could one define the has_many such that shop.employees returns the Spyke association?
Hello, is there a way to make the association definition to pick up nested resources from the JSON payload?
Let's say we have a
Shopmodel withArticlesandEmployees, but the JSON payload when fetching theShopis the following :{ "id": 1, "resources": { "employees": [], "articles": [], } }How could one define the
has_manysuch thatshop.employeesreturns the Spyke association?