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

Default sort #398

Open
andrewvasilchuk opened this issue Sep 7, 2023 · 1 comment
Open

Default sort #398

andrewvasilchuk opened this issue Sep 7, 2023 · 1 comment

Comments

@andrewvasilchuk
Copy link

andrewvasilchuk commented Sep 7, 2023

It would be great if SQLAlchemyObjectType allowed to configure a default_value of a #sort_argument method result.

def sort_argument_for_object_type(
  # ...
  return Argument(List(enum), default_value=enum.default)

Right now there is no way to configure the default_value of the Argument.

@erikwrede
Copy link
Member

Great Idea! Wanna push a PR for this? 🙂

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

No branches or pull requests

2 participants