Query an API using GraphQL in JavaScript

Thanks 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

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.

๐Ÿค“ 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