Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

adonis order by relation

// you must join relation first
User.query()
.join('colaborator_data', 'colaborator_data.doctor_id', '=', 'users.id')
 
PREVIOUS NEXT
Tagged: #adonis #order #relation
ADD COMMENT
Topic
Name
5+1 =