Skip to content

Search by field with different table name #196

@jaulz

Description

@jaulz

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?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions