graphql-python / graphene-django

Build powerful, efficient, and flexible GraphQL APIs with seamless Django integration.
http://docs.graphene-python.org/projects/django/en/latest/
MIT License
4.3k stars 768 forks source link

fix: foreign key nullable and custom resolver #1446

Closed superlevure closed 1 year ago

superlevure commented 1 year ago

Fix model.DoesNotExist exception when trying to resolve a null one-to-one relationship with a custom get_queryset implemented on the DjangoObjectType (see test)

superlevure commented 1 year ago

Thank you for your review @firaskafri, it seems that both @tcleonard and I lost our merge permissions, would you be able to do it?

firaskafri commented 1 year ago

Thank you for your review @firaskafri, it seems that both @tcleonard and I lost our merge permissions, would you be able to do it?

Sure! I just checked and I believe you and @tcleonard still have the write permissions though.