Query an API using GraphQL in JavaScript

hanks for the great article Riccardo Giorato !!! I really enjoyed seeing the new hooks from the apollo update.

This code just oozes cool:

Image for post
Image for post

Thanks again!

PS Your second file, the App.js, isn’t showing up. You have to copy-paste it over to a Gist (gist.github.com) and then embed the public Gist. Embedding straight from Github won’t work.

Written by

🤓 The physical therapist who writes JavaScript 💪 Web Developer 😎 Mentor 🧠 DPT 😄 SEO Expert 😁 React 😆 Jamstack 🗯️ Ask me anything 👉 DoctorDerek.com 👈

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store