thaiphan / graphql_languages
Extend the Drupal 8 GraphQL module to support querying languages
Installs: 2
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
Type:drupal-module
Requires
- php: >=7.2
- drupal/graphql: 4.x-dev
This package is auto-updated.
Last update: 2024-10-29 05:41:20 UTC
README
This simple Drupal GraphQL V4 extension adds some additional querying options for languages.
Installation
You can install using Composer.
composer require thaiphan/graphql_languages
Usage
Use the following syntax to retrieve your languages.
query { languages { id name direction } }
You will get the following response:
{ "data": { "languages": [ { "id": "en", "name": "English", "direction": "ltr" }, { "id": "it", "name": "Italian", "direction": "ltr" } ] } }