wp-graphql/wp-graphql-woocommerce

WooCommerce bindings for WPGraphQL

v0.5.1 2020-05-12 02:04 UTC

README

logo.svg

WPGraphQL WooCommerce (WooGraphQL)

DocsAxisTaylor • Join Slack

Actions Status Actions Status Coverage Status Financial Contributors on Open Collective

Quick Install

  1. Install & activate WooCommerce
  2. Install & activate WPGraphQL
  3. Clone or download the zip of this repository into your WordPress plugin directory & activate the WP GraphQL WooCommerce plugin.
  4. (Optional) Install & activate WPGraphQL-JWT-Authentication to add a login mutation that returns a JSON Web Token.
  5. (Optional) Install & activate WPGraphQL-CORS to add an extra layer of security using HTTP CORS and some of WPGraphQL advanced functionality.

What does this plugin do?

It adds WooCommerce functionality to the WPGraphQL schema using WooCommerce's CRUD objects.

Features

  • Query product, product variations, customers, coupons, orders, refunds and more with complex filtering options.
  • Manipulate customer session data using customer and cart mutations while managing customer session token using HTTP headers or cookies (not recommended). HTTP header example w/ React/Apollo
  • Create orders using the order mutations with the checkout mutation.

Future Features

  • Payment Processing
  • Adminstrator mutations. Eg. Creating and deleting products, coupons, and refunds.

Playground

Feel free to test out the extension using this GraphiQL Playground. The playground allows you to execute queries and mutations, as well as view the schema.

Wanna help support WooGraphQL's future.

Follow alt textalt text

Contributors

Code Contributors

This project exists thanks to all the people who contribute. [Contribute]. 68747470733a2f2f6f70656e636f6c6c6563746976652e636f6d2f776f6f6772617068716c2f636f6e7472696275746f72732e7376673f77696474683d38393026627574746f6e3d66616c7365

Financial Contributors

Become a financial contributor and help us sustain our community. [Contribute]

Individuals

68747470733a2f2f6f70656e636f6c6c6563746976652e636f6d2f776f6f6772617068716c2f696e646976696475616c732e7376673f77696474683d383930

Organizations

Support this project with your organization. Your logo will show up here with a link to your website. [Contribute]

68747470733a2f2f6f70656e636f6c6c6563746976652e636f6d2f776f6f6772617068716c2f6f7267616e697a6174696f6e2f302f6176617461722e737667 68747470733a2f2f6f70656e636f6c6c6563746976652e636f6d2f776f6f6772617068716c2f6f7267616e697a6174696f6e2f312f6176617461722e737667 68747470733a2f2f6f70656e636f6c6c6563746976652e636f6d2f776f6f6772617068716c2f6f7267616e697a6174696f6e2f322f6176617461722e737667 68747470733a2f2f6f70656e636f6c6c6563746976652e636f6d2f776f6f6772617068716c2f6f7267616e697a6174696f6e2f332f6176617461722e737667 68747470733a2f2f6f70656e636f6c6c6563746976652e636f6d2f776f6f6772617068716c2f6f7267616e697a6174696f6e2f342f6176617461722e737667 68747470733a2f2f6f70656e636f6c6c6563746976652e636f6d2f776f6f6772617068716c2f6f7267616e697a6174696f6e2f352f6176617461722e737667 68747470733a2f2f6f70656e636f6c6c6563746976652e636f6d2f776f6f6772617068716c2f6f7267616e697a6174696f6e2f362f6176617461722e737667 68747470733a2f2f6f70656e636f6c6c6563746976652e636f6d2f776f6f6772617068716c2f6f7267616e697a6174696f6e2f372f6176617461722e737667 68747470733a2f2f6f70656e636f6c6c6563746976652e636f6d2f776f6f6772617068716c2f6f7267616e697a6174696f6e2f382f6176617461722e737667 68747470733a2f2f6f70656e636f6c6c6563746976652e636f6d2f776f6f6772617068716c2f6f7267616e697a6174696f6e2f392f6176617461722e737667