v1.3.1
-
High-level API for SDL-based schema materialization (#288). It provides much more simple and robust API for building an executable schema based on SDL definitions. For more info see "High-level SDL-based Schema Builder" section of the documentation.
As a part of this feature, new functionality was introduced in
AstSchemaBuilder
which provides even more flexibility for schema materialization.Minor breaking change: most of the methods in
AstSchemaBuilder
got new argumentorigin: MatOrigin
. In order to migrate, you need to adjust the signatures of affected methods and addorigin: MatOrigin
argument. -
Prepared queries without known variables (#281, #277). Huge thanks to @msolomon for making this contribution! This feature adds
QueryReducerExecutor.reduceQueryWithoutVariables
. In its signature it is similar toExecutor.prepare
, but it does not requirevariables
and designed to validate and execute query reducers for queries that are being analyzed ahead of time (e.g. in the context of persistent queries). -
Ability to provide a partial error for deferred values (#290).
DeferredValue
andDeferredFutureValue
now has a methodmapWithErrors
. This works similar to thePartialValue
, so you can still have a successful result and at the same time indicate errors that happened during deferred value resolution. -
Ability to provide additional values from Middleware (#289).
beforeField
now returnsBeforeFieldResult
(instead of just a tuple) which allows you to add aMiddlewareAttachment
. This attachment then can be used in resolve function viaContext.attachment
/Context.attachments
.