graphql-python / graphql-python/graphene-sqlalchemy

Default resolver on Many-To-One and One-To-One relationships is not respected

Aperta
#309 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Python
Stelle
985
Fork
223
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

SQLAlchemy-Graphene respects a custom resolver if it's set, but not a custom default resolver for many-to-one and one-to-one relationships.

The issue lies here:
https://github.com/graphql-python/graphene-sqlalchemy/blob/20ecaeadf2144b88555a3daf1a04e31b7f2ff95a/graphene_sqlalchemy/converter.py#L80

It should be checked if there is a custom default resolver and that should be used if it's the case.

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.