An open API service indexing awesome lists of open source software.

https://github.com/wp-graphql/wp-graphql-blue-guitar

Example plugin showing how to register a GraphQL field to the WPGraphQL Schema
https://github.com/wp-graphql/wp-graphql-blue-guitar

Last synced: 11 months ago
JSON representation

Example plugin showing how to register a GraphQL field to the WPGraphQL Schema

Awesome Lists containing this project

README

          

# WPGraphQL Blue Guitar

Demo plugin, created as a joke, to show how to query a blue guitar using WPGraphQL.

```graphql
query {
guitar {
color
}
}
```

will return:

```json
{
"data": {
"guitar": {
"color": "blue"
}
}
}
```

## In Action

![Screenshot of GraphQL Query in action](./img/screenshot-guitar-query.png)