graphql-python / graphql-python/graphene-sqlalchemy

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

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

Description

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.

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.