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

How to exclude or specifically include fields from having filters auto created #418

Open
adiberk opened this issue Dec 27, 2024 · 1 comment

Comments

@adiberk
Copy link

adiberk commented Dec 27, 2024

Is there a way we can explicitly list all the fields we want filters created for? Like maybe in the Meta of the sqlalchemy object type?

@adiberk adiberk changed the title How to exclude fields from having filters auto created How to exclude or specifically include fields from having filters auto created Dec 27, 2024
@mark-addams001881
Copy link

Hello, we tried to solve the issue.

This is what we did:

This change adds a new option 'filter_fields' to the SQLAlchemyObjectTypeOptions class. It allows users to explicitly specify which fields should have filters created for them in the SQLAlchemyObjectType Meta.

You can review changes in this commit: mark-addams001881@cc54385.

Caution

Disclaimer: The concept of solution was created by AI and you should never copy paste this code before you check the correctness of generated code. Solution might not be complete, you should use this code as an inspiration only.


Latta AI seeks to solve problems in open source projects as part of its mission to support developers around the world. Learn more about our mission at https://latta.ai/ourmission . If you no longer want Latta AI to attempt solving issues on your repository, you can block this account.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants