This module generates a GraphQL schema, largely based on the TypedData API.
You can access your Content Entity Types and some other related data types by querying single entities (e.g. through the ``node`` root call) or by fetching lists of entities via the Entity Query API (e.g. through the ``nodeQuery`` root call).
The Entity Query root calls enable the use of any queryable field or property as condition for the query. You can also limit the range of the returned entities through the "offset" and "limit" arguments.
Known Limitations
- The Schema is not fully Relay compliant
- Currently does not expose Config Entity Types
- Mutations are currently not supported
Although the schema is not fully Relay compliant you can still use it with Relay. It just means that you won't be able to leverage the amazing Relay features for pagination or cursors, etc.
Installation:
You need both this module and the associated PHP library. The best way currently is to do both at once by the following steps.
You need to register packagist.drupal-composer.org as a Composer repository in your local composer.json:
composer config repositories.drupal composer https://packagist.drupal-composer.org
Now you can install the module through composer (which will install all vendor dependencies as well):
composer require drupal/graphql 8.x-2.x-dev
Project Information
- Maintenance status: Actively maintained
- Development status: Under active development
- Module categories: Database Drivers, Developer, JavaScript Utilities, Performance and Scalability, Third-party Integration, Utility
- Reported installs: 32 sites currently report using this module. View usage statistics.
- Downloads: 717
- Automated tests: Enabled
- Last modified: May 12, 2016
Downloads
Recommended releases
| Version | Download | Date |
|---|---|---|
| 8.x-1.1 | tar.gz (28.58 KB) | zip (45.67 KB) | 2016-May-08 |