Get a random Dad Joke returned via GraphQL query using the WPGraphQL WordPress plugin (https://github.com/wp-graphql/wp-graphql)
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin
img
tests
.distignore
.editorconfig
.gitignore
.travis.yml
Gruntfile.js
README.md
package.json
phpcs.ruleset.xml
phpunit.xml.dist
readme.txt
wp-graphql-dad-jokes.php

README.md

WPGraphQL Dad Jokes

This is an extension to the WPGraphQL plugin (https://github.com/wp-graphql/wp-graphql) that adds a dadJoke root query that returns a random dad joke from icanhazdadjoke.com

To query for a dad joke:

{
  dadJoke
}

GraphiQL dadJoke query