DEV Community

Discussion on: Dev Podcasts: 2018-10-28 to 2018-11-04

Collapse
 
askeroff profile image
Javid Asgarov

Yep, post more. I'm getting into this graphql thing myself.

I looked over your code, and here is a dumb (maybe) question, can you tell where this queries are defined? I'm looking at your code and you're making allPodcastShow query, but where have you defined this query?

I see in your gatsby-config you have allShowsUrl defined, but I don't see queries themselves, the resolvers.

Collapse
 
thejoezack_94 profile image
Joe Zack

I created a plugin fetches all of the shows from the search engine, then fetches the top 100 episodes for each show as well as the data from the RSS feed. After the data is gathered for a show, it calls the Gatsby built-in function "createNode" to set things up for GraphQL.

(Warning: ugly code ahead)

All of the data fetching and transformation happens here: github.com/codingblocks/tech-podca...