leoloso / graphiql-wp-block
WordPress block for adding a GraphiQL client, to query the GraphQL server
Installs: 9
Dependents: 1
Suggesters: 0
Security: 0
Stars: 4
Watchers: 3
Forks: 1
Open Issues: 24
Language:JavaScript
Requires
- php: ~7.1
- dev-master / 1.0.x-dev
- dev-dependabot/npm_and_yarn/json5-1.0.2
- dev-dependabot/npm_and_yarn/express-4.18.2
- dev-dependabot/npm_and_yarn/qs-6.5.3
- dev-dependabot/npm_and_yarn/decode-uri-component-0.2.2
- dev-dependabot/npm_and_yarn/loader-utils-and-webpack-cli-1.4.2
- dev-dependabot/npm_and_yarn/terser-4.8.1
- dev-dependabot/npm_and_yarn/async-2.6.4
- dev-dependabot/npm_and_yarn/ajv-6.12.6
- dev-dependabot/npm_and_yarn/node-sass-7.0.0
- dev-dependabot/npm_and_yarn/graphiql-1.4.7
- dev-dependabot/npm_and_yarn/tmpl-1.0.5
- dev-dependabot/npm_and_yarn/path-parse-1.0.7
- dev-dependabot/npm_and_yarn/postcss-7.0.36
- dev-dependabot/npm_and_yarn/merge-deep-3.0.3
- dev-dependabot/npm_and_yarn/browserslist-4.16.6
- dev-dependabot/npm_and_yarn/codemirror-5.61.0
- dev-dependabot/npm_and_yarn/hosted-git-info-2.8.9
- dev-dependabot/npm_and_yarn/lodash-4.17.21
- dev-dependabot/npm_and_yarn/ssri-6.0.2
- dev-dependabot/npm_and_yarn/y18n-3.2.2
- dev-dependabot/npm_and_yarn/elliptic-6.5.4
- dev-dependabot/npm_and_yarn/ini-1.3.8
- dev-dependabot/npm_and_yarn/websocket-extensions-0.1.4
- dev-dependabot/npm_and_yarn/acorn-5.7.4
This package is auto-updated.
Last update: 2024-11-05 12:47:36 UTC
README
WordPress block for adding a GraphiQL client, to query the GraphQL server
Usage
Include in your project through Composer:
$ composer require leoloso/graphiql-wp-block dev-master
Note: Your composer.json
file must have the configuration below to accept minimum stability "dev"
(there are no releases for PoP yet, and the code is installed directly from the master
branch):
{ ... "minimum-stability": "dev", "prefer-stable": true, ... }
Then, initialize by running:
(new \Leoloso\GraphiQLWPBlock\Block($graphiQLURLPath))->init();
$graphiQLURLPath
is a string containing the URL path to the block. From a plugin, it can be calculated like this:
$graphiQLPath = 'vendor/leoloso/graphiql-wp-block'; $graphiQLURLPath = \plugins_url($graphiQLPath, __FILE__);
Credits
License
The MIT License (MIT). Please see License File for more information.