DEV Community

Discussion on: GraphQL endpoint for getting stats of COVID19

Collapse
 
nickdesignsthings profile image
Nick Burczyk

I really want to use this API! I tried to use this in a codesandbox and got a "Network error: Failed to fetch" error. Do I need to so anything special to use this?

Collapse
 
sharadcodes profile image
Sharad Raj (He/Him) • Edited

Let me see and resolve the problem

Collapse
 
sharadcodes profile image
Sharad Raj (He/Him) • Edited

Did u tried again, it's not a normal API btw you'll have to use a lil different code perform the fetch on /graphql

Collapse
 
nickdesignsthings profile image
Nick Burczyk

Can you please include that different code in your readme/docs to help? I tried it in code sandbox, and now again locally with create-react-app with Apollo set up. Still no luck

Thread Thread
 
sharadcodes profile image
Sharad Raj (He/Him) • Edited

Hang on I'm setting up the docs

Thread Thread
 
nickdesignsthings profile image
Nick Burczyk

:D

Thread Thread
 
sharadcodes profile image
Sharad Raj (He/Him)

Done check it now

Thread Thread
 
nickdesignsthings profile image
Nick Burczyk

Awesome :) I got it working and am playing with building out the app. Will let you know when it is live!

Thread Thread
 
sharadcodes profile image
Sharad Raj (He/Him)

AWESOME

Collapse
 
sharadcodes profile image
Sharad Raj (He/Him)

It it fixed for you now ?

Collapse
 
nickdesignsthings profile image
Nick Burczyk

Thanks for posting this gql server! This is an interesting distraction in difficult times

Thread Thread
 
sharadcodes profile image
Sharad Raj (He/Him)

Distraction ?