Skip to content

isabella232/wp-graphql-blue-guitar

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

WPGraphQL Blue Guitar

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

query {
  guitar {
    color
  }
}

will return:

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

In Action

Screenshot of GraphQL Query in action

About

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

Resources

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%