Right now, the name of the table of is prepended to any filter defined by @searchBy, e.g. users.active. However, with custom queries I have a case where I would like to query a field on a different table of the query. I think the easiest would be to use the rename directive (e.g. @rename( attribute: "related_table.name" )) and within the query enhancer check if the attribute contains a dot?
Right now, the name of the table of is prepended to any filter defined by
@searchBy, e.g.users.active. However, with custom queries I have a case where I would like to query a field on a different table of the query. I think the easiest would be to use the rename directive (e.g.@rename( attribute: "related_table.name" )) and within the query enhancer check if the attribute contains a dot?