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

https://github.com/theunderscorer/wpk-core-graphql

Plugin for wpk-core that creates Graphql server for Wordpress.
https://github.com/theunderscorer/wpk-core-graphql

Last synced: 3 months ago
JSON representation

Plugin for wpk-core that creates Graphql server for Wordpress.

Awesome Lists containing this project

README

        

# WPK Core Graphql

A plugin for [wpk-core](https://github.com/TheUnderScorer/wpk-core) framework that creates Graphql server in Wordpress. Uses awesome [graphqlite](https://github.com/thecodingmachine/graphqlite) library.

## Usage

1. Installation:
``composer require the-under-scorer/wpk-core-graphql``

- Add graphql route in your `routes.php` file:

```php
route()
->any()
->match( '/graphql' )
->controller( GraphqlServer::class );
```

- Add `SchemaProvider` and `DataLoaderProvider` into your `providers.php` :
```php