Link to WPGraphQL on Github
Link to WPGraphQL on WordPress.org

Popular Posts

The following code allows you to query for popular posts. It’s still up to you to determine the best way to store popular posts, but this example assumes a meta_key is involved. Beware though, meta queries can be expensive!

You can query for the popular posts using this GraphQL query:

Popular Posts query in GraphiQL