Django, GraphQL and React Native

92 views
Skip to first unread message

ndifreke umoren

unread,
Jun 11, 2020, 3:22:06 PM6/11/20
to Django users
Hello everyone. I am working on a React Native mobile app with a GraphQL endpoint I built using Python Django. Please I need help connecting the API with the client. 

Walid Kambagha

unread,
Jun 11, 2020, 7:56:34 PM6/11/20
to django...@googlegroups.com
You can use Apollo the same way you’d use with React to connect to the API.

On Thu, 11 Jun 2020 at 22:21, ndifreke umoren <ndifrk...@gmail.com> wrote:
Hello everyone. I am working on a React Native mobile app with a GraphQL endpoint I built using Python Django. Please I need help connecting the API with the client. 

--
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/250b31a2-b276-4d75-a93a-b1e004491e55o%40googlegroups.com.

ndifreke umoren

unread,
Jun 12, 2020, 10:37:55 AM6/12/20
to Django users
@Waled thanks for your response. That's exactly what I did but I keep having no data sent back. I tested my API with graphiql and it works perfectly but on React Native, I keep getting "Network Error: Network failed" error. I'd love all the help I can get solving this problem. Thanks.


On Friday, June 12, 2020 at 12:56:34 AM UTC+1, Walid Kambagha wrote:
You can use Apollo the same way you’d use with React to connect to the API.
On Thu, 11 Jun 2020 at 22:21, ndifreke umoren <ndifrk...@gmail.com> wrote:
Hello everyone. I am working on a React Native mobile app with a GraphQL endpoint I built using Python Django. Please I need help connecting the API with the client. 

--
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.

ADEWALE ADISA

unread,
Jun 12, 2020, 6:44:06 PM6/12/20
to django...@googlegroups.com
can you show your graphene code ?

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/0e4decb3-7f78-466f-96ac-8d01f474b3f7o%40googlegroups.com.

Walid Kambagha

unread,
Jun 12, 2020, 9:02:25 PM6/12/20
to django...@googlegroups.com
Is the error occur when using emulator or real device?

Reply all
Reply to author
Forward
0 new messages