graphql-python / graphql-python/graphene-sqlalchemy

Default sort

Aberta
#398 1 comentário 0 reações 0 responsáveis Ver no GitHub
enhancement
Linguagem predominante
Python
Estrelas
985
Forks
223
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

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

Guia de contribuição

Abrir o guia de contribuição

Direção de pesquisa

Start at SQLAlchemyObjectType and locate the sort_argument method described in the issue, then inspect how its Argument is constructed. The change is complete when callers can configure the Argument's default_value for the sort result; no test location is provided in the issue.

Escrita pelo modelo de indexação a partir do texto da issue.

Avaliação

Stack de tecnologia
graphql, python, sqlalchemy
Domínio
api, database
Tipo de issue
Funcionalidade
Dificuldade
3/5
Tempo estimado
1-2 dias
Status de atividade
Estagnada
Clareza
Razoavelmente clara
Facilidade para iniciantes
35/100

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.