pixelandtonic/graphql-php
PHP implementation of the GraphQL specification (based on graphql-js). Build schemas, execute queries, and add custom types, fields, and resolvers. Install via Composer and explore full docs and ready-to-run examples.
This release brings several breaking changes. Please refer to UPGRADE document for details.
GraphQL\Deferred now extends GraphQL\Executor\Promise\Adapter\SyncPromiseBreakingChangesFinder)GraphQL\Error\Debug to GraphQL\Error\DebugFlag.GraphQL\Executor\ExecutionResult, GraphQL\Error\FormattedError and GraphQL\Server\ServerConfig do not accept boolean value anymore but int only.$positions in GraphQL\Error\Error constructor are not nullable anymore. Same can be expressed by passing an empty array.Notable features and improvements:
Other noteworthy changes:
deprecationReason will now print the [@deprecated](https://github.com/deprecated) directive (only a null deprecationReason won't print the [@deprecated](https://github.com/deprecated) directive).Also some bugs fixed, heavily invested in PHPStan for static analysis.
Special thanks to @simPod, @spawnia and @shmax for their major contributions!
GraphQL\Server (see #82)TypeResolutionStrategy (see #69)This release brings several minor breaking changes. Please refer to UPGRADE document for details.
New features:
null value (as required by latest GraphQL spec)path entry in errors produced by resolvers for better debuggingresolveType for interface/union is now allowed to return string name of typeImprovements:
This release brings several breaking changes. Please refer to UPGRADE document for details.
New features and notable changes:
category and extensions are displayed under extensions key when using default formatting (#389)GraphQL::useExperimentalExecutor().
Please try it and post your feedback at https://github.com/webonyx/graphql-php/issues/397
(as it may become the default one in future)
extendSchema from the reference implementation under GraphQL\Utils\SchemaExtender (#362)GraphQL::overrideStandardTypes(array $types) (#401)Debug::RETHROW_UNSAFE_EXCEPTIONS which would only rethrow app-specific exceptions (#337)data entry from response on top-level error (#281)Improvements:
operationName (instead of operation) in inputtypes option of the schema (see #174).This release brings little changes but there are two reasons why it is released as major version:
"false" accidentally sent in variables was converted to boolean true
and passed to field arguments. In the new version, such input will produce an error
(which is a spec-compliant behavior).Improvements:
BuildSchema now have reference to AST node with corresponding AST definition (in $astNode property).graphql file)This release brings several breaking changes. Please refer to UPGRADE document for details.
New features and notable changes:
Improvements:
Deprecations and breaking changes - see UPGRADE document.
value is bool, null or float (see #141)resolveType returns unexpected result (see #119)AST\Node::__toString() will convert node to array recursively to encode to json without errorsResolveInfo::getFieldSelection() now correctly merges fragment selections (see #98)ResolveInfo::getFieldSelection() now respects inline fragmentsGraphQL\Server now properly sets promise adapter before executing queryLook at GitHub Releases Page.
How can I help you explore Laravel packages today?