https://github.com/thaiphan/graphql_languages
Use GraphQL to retrieve your Drupal languages.
https://github.com/thaiphan/graphql_languages
drupal drupal-8 drupal-module graphql
Last synced: 6 months ago
JSON representation
Use GraphQL to retrieve your Drupal languages.
- Host: GitHub
- URL: https://github.com/thaiphan/graphql_languages
- Owner: thaiphan
- License: mit
- Created: 2020-06-01T14:18:03.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-06-01T14:19:42.000Z (over 5 years ago)
- Last Synced: 2025-07-30T20:05:53.843Z (7 months ago)
- Topics: drupal, drupal-8, drupal-module, graphql
- Language: PHP
- Size: 2.93 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GraphQL Languages
This simple Drupal GraphQL V4 extension adds some additional querying options for languages.
## Installation
You can install using Composer.
```sh
composer require thaiphan/graphql_languages
```
## Usage
Use the following syntax to retrieve your languages.
```graphql
query {
languages {
id
name
direction
}
}
```
You will get the following response:
```json
{
"data": {
"languages": [
{
"id": "en",
"name": "English",
"direction": "ltr"
},
{
"id": "it",
"name": "Italian",
"direction": "ltr"
}
]
}
}
```