Install
Works with Drupal: ^10.4 || ^11Using Composer to manage Drupal site dependencies
Alternative installation files
Download tar.gz
50.2 KB
MD5: 1f0e3cdddf0f60c0dfb1700fea7e4922
SHA-1: 544b1ec540196cd05ed1360c1983498da99043b1
SHA-256: 291911ffa8cba392aecf02b8eab10bdfbc14ead320cb334c2ab41e6ddad7558f
Download zip
98.96 KB
MD5: 4294b9f13b5270e2a4c51b944ed5aa40
SHA-1: 347b83b301cd13c39e81734ec8caf265e99bb885
SHA-256: 389ec4146fc5e30e058385160218f54d3c52a365540bd3562ad6004fe4ceca10
Release notes
Beta 1 fixes the bugs found in a full review of 2.0.x and freezes the API. Changes since 2.0.0-alpha1:
Security
@drupalViewchecks the display access of the view and "view" access on each row entity.pageSizeis kept between 1 and 100 andpageat 1 or more. Before,pageSize=0returned every row.
Fixes
@argnow resolves the field argument.- Fields and
@typeids declared inextend typeblocks are resolved. - The
url_languagedata producer returns the langcode for a URL prefix, not the prefix itself, and matches a path made of the prefix only (/de). - The
current_user_entitydata producer is cached per user instead of not at all, and returnsNULLinstead of failing when the user can't be loaded. - Schema caches follow changes to the server configuration (schema file, autoload contexts, enabled extensions) without a cache clear.
autoload_contextsis declared in the config schema.- The schema definition path resolves against the Drupal root everywhere, accepts absolute paths and is validated in the server form.
.graphqlrc.jsonaccepts a singleschemapattern, and directories matched by a pattern are skipped.
API changes
DirectableSchema::getPluginId()returnsdirectableinstead of a hash per schema file and contexts.- Plugins are declared with PHP attributes instead of annotations.
- The
current_user_entitydata producer no longer extends the GraphQL module'scurrent_userproducer. - New
typed_data_type,language_idandlanguage_pathdata producers replace the deprecatedResolverBuilder::callback()closures. - The resolver cache is removed. Builder-based resolvers can't be serialized, so it was never used.
Documentation
@propertydoes not check field access.- A directive argument that starts with
$is always read as the current value or a field argument; there is no escape sequence.