Open chilander1 opened 2 years ago
you can use
withGraphJoined(
{
training: {
program: {
company: true,
},
},
},
{ minimize: true } // minimizes tables names
);
https://vincit.github.io/objection.js/api/types/#type-graphoptions
It would be good to have a possibility to edit
ID_LENGTH_LIMIT
(/objection/lib/queryBuilder/join/utils.js
) Sometimes when I usewithGraphJoined
I get very long aliases and an error likeValidationError: identifier training:program:company:some_veeeeeeery_loooooooong_column_name is over 63 characters long and would be truncated by the database engine.