Skip to content

Commit

Permalink
feat: add a blueprint for using WPGraphQL and the WPGraphQL IDE (#74)
Browse files Browse the repository at this point in the history
This adds a blueprint that creates a WordPress install with WPGraphQL
active and takes the user to the WPGraphQL IDE page where they can
explore the WPGraphQL Schema and execute GraphQL Queries.
  • Loading branch information
jasonbahl authored Nov 1, 2024
1 parent 611cf5c commit 208b739
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
4 changes: 2 additions & 2 deletions GALLERY.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Here's the list of all the community Blueprints submitted to this repository. See the [contribution guidelines](./README.md#contributing-your-blueprint) to submit your Blueprint and share your WordPress setup with the world!

| Title | Description | Author | Actions |
| ----- | ----------- | ------ | ------- |
|------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| ------ | ------- |
| **Feed Reader with the Friends Plugin** | By using the Friends plugin and a CORS proxy, you can read feeds from the web in Playground, and even via ActivityPub | [@akirk](https://github.com/akirk) |[Open in Playground](https://playground.wordpress.net/?blueprint-url=https://raw.githubusercontent.com/wordpress/blueprints/trunk/blueprints/friends-cors/blueprint.json)<br>• [View source](https://github.com/wordpress/blueprints/blob/trunk/blueprints/friends-cors/blueprint.json)<br>• [Edit](https://playground.wordpress.net/builder/builder.html?blueprint-url=https://raw.githubusercontent.com/wordpress/blueprints/trunk/blueprints/friends-cors/blueprint.json) |
| **Stylish Press** | A Woo store with custom theme, content, and products. | [@adamziel](https://github.com/adamziel) |[Open in Playground](https://playground.wordpress.net/?blueprint-url=https://raw.githubusercontent.com/wordpress/blueprints/trunk/blueprints/stylish-press/blueprint.json)<br>• [View source](https://github.com/wordpress/blueprints/blob/trunk/blueprints/stylish-press/blueprint.json)<br>• [Edit](https://playground.wordpress.net/builder/builder.html?blueprint-url=https://raw.githubusercontent.com/wordpress/blueprints/trunk/blueprints/stylish-press/blueprint.json) |
| Create Block Theme | Blueprint to install Create Block Theme and start editing right away | [@jonathanbossenger](https://github.com/jonathanbossenger) |[Open in Playground](https://playground.wordpress.net/?blueprint-url=https://raw.githubusercontent.com/wordpress/blueprints/trunk/blueprints/create-block-theme/blueprint.json)<br>• [View source](https://github.com/wordpress/blueprints/blob/trunk/blueprints/create-block-theme/blueprint.json)<br>• [Edit](https://playground.wordpress.net/builder/builder.html?blueprint-url=https://raw.githubusercontent.com/wordpress/blueprints/trunk/blueprints/create-block-theme/blueprint.json) |
Expand All @@ -24,4 +24,4 @@ Here's the list of all the community Blueprints submitted to this repository. Se
| Use wp-cli to add a post with image | Use wp-cli to create a post from text file with block markup and a featured image | [@bph](https://github.com/bph) |[Open in Playground](https://playground.wordpress.net/?blueprint-url=https://raw.githubusercontent.com/wordpress/blueprints/trunk/blueprints/wpcli-post-with-image/blueprint.json)<br>• [View source](https://github.com/wordpress/blueprints/blob/trunk/blueprints/wpcli-post-with-image/blueprint.json)<br>• [Edit](https://playground.wordpress.net/builder/builder.html?blueprint-url=https://raw.githubusercontent.com/wordpress/blueprints/trunk/blueprints/wpcli-post-with-image/blueprint.json) |
| WooCommerce product feed | Blueprint to create a WooCommerce product and export an XML/CSV product feed | [@mujuonly](https://github.com/mujuonly) |[Open in Playground](https://playground.wordpress.net/?blueprint-url=https://raw.githubusercontent.com/wordpress/blueprints/trunk/blueprints/woocommerce-product-feed/blueprint.json)<br>• [View source](https://github.com/wordpress/blueprints/blob/trunk/blueprints/woocommerce-product-feed/blueprint.json)<br>• [Edit](https://playground.wordpress.net/builder/builder.html?blueprint-url=https://raw.githubusercontent.com/wordpress/blueprints/trunk/blueprints/woocommerce-product-feed/blueprint.json) |
| WordPress Beta | Test the latest WordPress Beta or RC release with theme test data and debugging plugins. Only loads the Beta version during the Beta period. | [@courtneyr-dev](https://github.com/courtneyr-dev) |[Open in Playground](https://playground.wordpress.net/?blueprint-url=https://raw.githubusercontent.com/wordpress/blueprints/trunk/blueprints/beta-rc/blueprint.json)<br>• [View source](https://github.com/wordpress/blueprints/blob/trunk/blueprints/beta-rc/blueprint.json)<br>• [Edit](https://playground.wordpress.net/builder/builder.html?blueprint-url=https://raw.githubusercontent.com/wordpress/blueprints/trunk/blueprints/beta-rc/blueprint.json) |

| WPGraphQL | Blueprint that loads WordPress with WPGraphQL active and loads the WPGraphQL IDE allowing users to test GraphQL queries and explore the GraphQL Schema. | [@jasonbahl](https://github.com/jasonbahl) |[Open in Playground](https://playground.wordpress.net/?blueprint-url=https://raw.githubusercontent.com/wordpress/blueprints/trunk/blueprints/wpgraphql/blueprint.json)<br>• [View source](https://github.com/wordpress/blueprints/blob/trunk/blueprints/wpgraphql/blueprint.json)<br>• [Edit](https://playground.wordpress.net/builder/builder.html?blueprint-url=https://raw.githubusercontent.com/wordpress/blueprints/trunk/blueprints/wpgraphql/blueprint.json) |
19 changes: 19 additions & 0 deletions blueprints/wpgraphql/blueprint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"$schema": "https://playground.wordpress.net/blueprint-schema.json",
"meta": {
"title": "Use WPGraphQL to query WordPress",
"description": "Example that loads WordPress with WPGraphQL active and defaults to the WPGraphQL IDE page to allow users to test GraphQL queries and explore the GraphQL Schema.",
"author": "jasonbahl",
"categories": ["API", "wpgraphql"]
},
"landingPage": "/wp-admin/admin.php?page=graphiql-ide&query=I4VwpgTgngBA4mALgBQPYGdHpgbwFAwwAOGWuBhMAdqgCZjb6WUCWtFziLiANmB5VoBDRP2YBfCpPFA",
"plugins": [
"wp-graphql"
],
"steps": [
{
"step": "login",
"username": "admin"
}
]
}

0 comments on commit 208b739

Please sign in to comment.