You can now use GitHub Updater to auto-update the plugin directly from the GitHub repo.
The GraphiQL Explorer enables to code the GraphQL query by point-and-clicking on fields:
Previously, it was only available on the GraphiQL client for creating persisted queries. It has now been also added in the other locations:
- Admin GraphiQL client
- Single endpoint public GraphiQL client
- Custom endpoint public GraphiQL clients
Enabled by default, the GraphiQL Explorer can be disabled for selected clients via the Settings:
Embeddable fields is a syntax construct for the GraphQL query, which is currently not part of the GraphQL spec.
It enables to resolve a field within an argument for another field from the same type, using syntax {{ fieldName }}
.
For instance, this query produces a string containing the values from several fields:
query {
posts {
description: echoStr(value: "'{{ title }}' was posted on {{ date }}")
}
}
The embedded field can also include arguments, using {{ fieldName(fieldArgs) }}
, and be used within directive arguments.
For instance, this query changes the title of the post depending on the post having comments or not, and formats the date as "d/m/Y"
:
query {
posts {
title: echoStr(value: "({{ commentCount }}) {{ title }} - posted on {{ date(format: \"d/m/Y\") }}") @include(if: "{{ hasComments }}")
title @skip(if: "{{ hasComments }}")
}
}
By default, the Embeddable fields
module is disabled; you must click on "Enable"
in the Modules
page.
Read more about this new functionality on link "View details"
from the Embeddable fields
module.
The plugin code is transpiled via Rector when generating the installable plugin.
Now, the PHP requirements are:
- PHP 8.1+ for development
- PHP 7.1+ for production
This enables the plugin to make use of the latest features from PHP, while not restricting its userbase.
The list of supported PHP features is on the project's GitHub repo.
PHPStan is a static analysis tool to avoid bugs. It has been upgraded to level 8 (the strictest level).
A new About page has been added containing:
- Information on how to fund the project
- The Slack workspace for support
- The list of the release notes for each version
Starting from this version, immediately after updating the plugin, an admin notice will display a link to read the release notes for the new version:
When clicking on the link, the release notes are shown on a modal window: