graphql-python / graphql-python/graphene-django

What is the motivation between coupling DRF and Graphene Django?

Open
#1,323 0 comments 6 reactions 0 assignees View on GitHub
✨enhancement
Dominant language
Python
Stars
4.4k
Forks
760
PR merge metrics
No merged PRs in 30d

Description

Hi folks, hope you're all well!

I had a look at the PR that initially implemented the support for DRF [here](https://github.com/graphql-python/graphene-django/pull/186) but it doesn't have much context about the **motivation** behind of it.

I found a [comment](https://github.com/graphql-python/graphene-django/issues/594#issuecomment-474903689) from a maintainer indicating that he uses the DRF integration when he already has a serializer, otherwise he uses Django forms.

However, I'd like to understand more behind the motivation and intended usage/audience, and if this support was meant to only allow people developing in DRF to migrate more swiftly or if it is intended even for someone starting a project from scratch so that they gain from DRF abstractions.

Ultimately DRF is a nice library and I can see why re-using serializers could be beneficial during a migration from Rest to GraphQL, however I can't wrap my head around whether adding a DRF dependency in a greenfield project would be the go-for or if it would be unnecessary and/or troublesome.

Thanks for reading my mumbling speech, hope to get some feedback on that!

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.