graphql-python / graphql-python/graphene-sqlalchemy

Default sort

Open
#398 1 comment 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Python
Stars
985
Forks
223
PR merge metrics
No merged PRs in 30d

Description

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

```python
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`.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.