graphql-python / graphql-python/graphene-sqlalchemy

add support for strict_type connections

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

Descrição

Currently the strict_type=True option on the Meta class for a node is ignored and the connections end up having nullable values in the edge list. If you override the connection_class to set the strict_type on the connection, the SQLAlchemyConnectionField constructor fails because it does not unwrap the NonNull from the node before trying to set up the sort.

Ideally it should be possible to set the strict_type option on the connection via metadata on the node class.

Guia de contribuição

Abrir o guia de contribuição

Direção de pesquisa

Start by tracing how the node Meta.strict_type setting reaches connections and how SQLAlchemyConnectionField constructs sorting when the node type is NonNull. Reproduce the nullable edge-list behavior and constructor failure described in the issue. Done means node metadata can set strict_type on the connection and the field constructor handles the NonNull node correctly.

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

Avaliação

Stack de tecnologia
graphql, python, sqlalchemy
Domínio
api, backend, databases
Tipo de issue
Bug
Dificuldade
4/5
Tempo estimado
3-5 dias
Status de atividade
Estagnada
Clareza
Razoavelmente clara
Facilidade para iniciantes
38/100

Receba novas issues na sua caixa de entrada

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