Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why relay in graphene-django?

I would like to know why Relay spec is in graphene-django? I understand that using relay in graphene-django we get pagination and filters by default.

My requirement is to call graphql apis from React (for Web) and use Apollo client for Android and iOS.

  1. Will there be a problem for clients to consume graphql apis written using graphene-django with Relay compliant especially pagination (and cursors) feature?

  2. How to support subscriptions using graphene-django?

Any help would be highly appreciated.

like image 736
RajKrishnan Avatar asked Aug 06 '18 04:08

RajKrishnan


1 Answers

  1. There isn't any problem with consuming Relay-compliant graphene-django API. My team at work is currently using react-query library, and it works fabulously!

  2. As mentioned in this graphene-django Github issue, GraphQL subscription is currently not supported out of the box.

like image 93
flying_duck Avatar answered Nov 08 '22 16:11

flying_duck