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.
- Host: GitHub
- URL: https://github.com/theunderscorer/wpk-core-graphql
- Owner: TheUnderScorer
- Created: 2019-08-28T08:07:20.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-10T00:46:39.000Z (over 2 years ago)
- Last Synced: 2025-01-17T03:31:56.069Z (5 months ago)
- Language: PHP
- Size: 15.6 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
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