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
- Host: GitHub
- URL: https://github.com/wp-graphql/wp-graphql-blue-guitar
- Owner: wp-graphql
- Created: 2019-12-13T20:44:34.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-12-13T20:56:37.000Z (over 6 years ago)
- Last Synced: 2025-07-30T11:54:05.905Z (11 months ago)
- Language: PHP
- Size: 29.3 KB
- Stars: 3
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
