If you want to use WordPress as a headless CMS with Gatsby, I'll demonstrate how you can achieve this in this tutorial.