By Leonardo Losoviz ·
Gato GraphQL v4.1
has been released. Check out the release notes in GitHub for the complete list of changes.
The most important new feature belongs to Gato GraphQL PRO.
With the Polylang extension, we can now filter data by language.
We can provide the language to filter by when fetching data for:
- Posts
- Pages
- Custom posts
- Categories
- Tags
- Media items
The corresponding fields receive input polylangLanguage
, and we can filter by code or locale, and by 1 or more than 1 language.
For instance, passing $languageCodes: ["es"]
will fetch data in Spanish: