0
Hello, I’m having a doubt that I haven’t found anywhere yet (or didn’t know how to look). In Laravel/Cakephp I can easily relate models and make queries with models recursively.
How can I make with Adonis Js a query in my Board bring the tasks and in Tasks bring the Status?
boards: {
name: 'Meu board',
tasks: {
{
name: 'Tarefa 1',
status: {
name: 'Médio'
}
},
{
name: 'Tarefa 2',
status: {
name: 'Alto'
}
},
}
}
Follows the models:
Model board (has several tasks)
Model tasks only have one board and one status
And the Model status has several tasks
And in the board controller I query with.