djangorestframework vs GraphQL

41 views
Skip to first unread message

guettli

unread,
Nov 12, 2019, 4:14:09 AM11/12/19
to Django users
Hi,

I am new to GraphQL, but I like the idea very much.

There is already an A Django integration for Graphene: https://github.com/graphql-python/graphene-django


What are the pros and cons of djangorestframework and GraphQL?

Which one would you choose, if you could start from scratch?

Regards,
  Thomas Güttler

PS: I am always looking for feedback for my guidelines: https://github.com/guettli/programming-guidelines

Nick Sarbicki

unread,
Nov 12, 2019, 4:25:43 AM11/12/19
to Django users
GraphQL strikes me as very similar to NoSQL.

Useful in niches but the older standard is better in general.

I've tried both and the added complexity (designing a system to generate all required data from a single request) of GraphQL for the, seemingly minor, gain (a single request for all your data) doesn't enthuse me.

It's an interesting solution to a problem I've never really had. Not to say it isn't useful in some situations, I just haven't yet encountered a situation where it is.

- Nick


--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/f5dd3fea-28ab-4b01-9e07-0819b4bb91cb%40googlegroups.com.

Integr@te System

unread,
Nov 12, 2019, 6:51:25 AM11/12/19
to django...@googlegroups.com
Hi Freinds,

GQL, when compare DRF, it as an option, and for whom familiar with other tools without DRF or Python, and align thinking with framework/anythingelse relate to JS.
Base on your choice or requirement.

guettli

unread,
Nov 13, 2019, 3:14:04 AM11/13/19
to Django users
I never used GraphQL, but I like it. In the past the django web framework had a different API than a restframework for ruby or Nodejs.

With GraphQL you have a well defined API and changeing the backend part should be easier.

But again, I never used it up to now.


Am Dienstag, 12. November 2019 12:51:25 UTC+1 schrieb Integr@te System:
Hi Freinds,

GQL, when compare DRF, it as an option, and for whom familiar with other tools without DRF or Python, and align thinking with framework/anythingelse relate to JS.
Base on your choice or requirement.

On Tue, Nov 12, 2019, 16:24 Nick Sarbicki <nick.a...@gmail.com> wrote:
GraphQL strikes me as very similar to NoSQL.

Useful in niches but the older standard is better in general.

I've tried both and the added complexity (designing a system to generate all required data from a single request) of GraphQL for the, seemingly minor, gain (a single request for all your data) doesn't enthuse me.

It's an interesting solution to a problem I've never really had. Not to say it isn't useful in some situations, I just haven't yet encountered a situation where it is.

- Nick


On Tue, Nov 12, 2019 at 9:14 AM guettli <guet...@gmail.com> wrote:
Hi,

I am new to GraphQL, but I like the idea very much.

There is already an A Django integration for Graphene: https://github.com/graphql-python/graphene-django


What are the pros and cons of djangorestframework and GraphQL?

Which one would you choose, if you could start from scratch?

Regards,
  Thomas Güttler

PS: I am always looking for feedback for my guidelines: https://github.com/guettli/programming-guidelines

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django...@googlegroups.com.

DANIEL URBANO DE LA RUA

unread,
Nov 13, 2019, 5:35:17 AM11/13/19
to django...@googlegroups.com
You have a good example on saleor eccomerce is on github

To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/20edfecc-976a-46c7-b71e-006ea5c660ea%40googlegroups.com.

guettli

unread,
Nov 14, 2019, 3:49:46 AM11/14/19
to Django users
Thank you for the hint. Saleor looks very good. 

DANIEL URBANO DE LA RUA

unread,
Nov 14, 2019, 6:12:34 AM11/14/19
to django...@googlegroups.com
Thanks to you i happy if that can help you out ;)

To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/0fe64ee7-4ae1-4ff1-b255-01e317b09da5%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages