Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Predefined column names for relations #96

Open
salmanhijazi opened this issue Dec 15, 2024 · 1 comment
Open

Predefined column names for relations #96

salmanhijazi opened this issue Dec 15, 2024 · 1 comment
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@salmanhijazi
Copy link

Hello, thank you for the great package!

I have a suggest, or a request. In order to simplify the work for the frontend dev, and also in cases where you don't want to share table/column information, there should be a way to predefine the column on the relation that should be used for searching. For example:

properties?filters[fruit][name][$eq]=apple

I should be able to do something like:

protected $renamedFilterFields = [
    'fruit.name' => 'fruit',
];

So the query can then just be:

properties?filters[fruit][$eq]=apple

I think this would simplify things for frontend work. Thoughts?

Thank you!

@abbasudo abbasudo added enhancement New feature or request help wanted Extra attention is needed labels Dec 15, 2024
@abbasudo
Copy link
Owner

Hello @salmanhijazi, Thank you for your great suggestion.

We accept any pull requests in this regard. Feel free to contribute.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants