Skip to content

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

Notifications You must be signed in to change notification settings

wp-graphql/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

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages