GraphQL Library 3 Release Notes
Contents
Release notes for GraphQL Library 3.
| GraphQL Library 3 requires Enonic XP 8.0 or newer. |
GraphQL Library 3.1.0
Features
-
execute()accepts a singleparamsobject withschema,query,variables, andcontext. -
maxDepthandmaxFieldsCountin theparamsobject reject queries that are too deep or too large. Seeexecute. -
TypeScript type definitions for all three modules are published as
@enonic-types/lib-graphqlon npm, versioned in step with the library. See TypeScript for setup.
Improvements
-
The type definitions are generated from the library’s TypeScript source, so they cannot drift from the shipped modules.
Bug fixes
-
The
@enonic-types/lib-graphql3.0.0 setup that listed the package only intypescould not resolve/lib/graphqlimports. The package now needspathsentries as well; see TypeScript.
Breaking changes
-
The modules are compiled from TypeScript, and their exports are read-only. Assigning to an export, for example to mock
executein a test, throws; replace the whole module instead. OverridingencodeCursorno longer changes the cursors of types created bycreateConnectionType. -
A bundler or compiler default import such as
import graphQlLib from '/lib/graphql'no longer resolves to the module. Userequire(), a namespace import (import * as graphQlLib from '/lib/graphql'), or named imports.
Deprecations
-
The positional form
execute(schema, query, variables, context)is deprecated and will be removed in the next major version. Useexecute({schema, query, variables, context})instead.
GraphQL Library 3.0.0
GraphQL Library 3.0.0 was released in June 2026 as the XP 8-compatible major release.
Improvements
-
Added compatibility with Enonic XP 8.
-
Updated the underlying GraphQL Java libraries used to build and execute schemas.
-
Queries deeper than 100 levels or with more than 100000 fields are rejected.
-
Replaced the end-of-life RxJava dependency with a JDK Flow-based subscription implementation while retaining the
/lib/graphql-rxJavaScript helpers. -
Subscription publishers preserve the XP execution context by delivering events on the publishing thread.
Breaking changes
-
The minimum required Enonic XP version is 8.0. Applications running on XP 7 must continue using GraphQL Library 2.x.