Releases: glesys/butler-graphql
Releases · glesys/butler-graphql
v2.1.0
v2.0.1
v2.0.0
Added
- Interface support 🎉. Types are resolved using
$source['__typename']
,$source->__typename
,Parent@resolveTypeForField()
(Query@resolveType
for queries and mutations) or class base name.
Changed
- BREAKING: Upgrade to webonyx/[email protected] for improved performance and specification compliance. The
category
andvalidation
keys previously available next tomessage
in errors has now been moved to theextensions
part of errors as per the June 2018 GraphQL specification. - BREAKING: Support for various casing from source data. Previously Butler GraphQL assumed
snake_case
for source data attributes when resolving fields (to mimic the Eloquent standard). This has now been extended to supportsnake_case
,camelCase
andkebab-case
by default. To change this behaviour you can override thepropertyNames(ResolveInfo $info): array
method in your GraphQL controller. The oldpropertyName(ResolveInfo $info): string
method has been removed.
v1.2.1
v1.2.0
Added
- Decorate the response with debug information when using barryvdh/laravel-debugbar.
Changed
- Upgrade webonyx/[email protected] for improved schema language support.
Fixed
- The code in
HandlesGraphqlRequests->errorFormatter()
always assumed\Exception
from\GraphQL\Error\Error->getPrevious()
when it fact it returns\Throwable
. We now ensure that we always pass\Exception
toExceptionHandler->report()
.
v1.1.2
v1.1.1
v1.1.0
v1.0.0
This marks the release of Butler GraphQL v1.0.0, completely rewritten to make it easier than ever to create GraphQL APIs using Laravel.
Added
-
Simplified setup with auto-disovered service provider with easy-to-use conventions.
-
Use a
schema.graphql
file to define your GraphQL API. -
Data Loader included to prevent N+1 issues.
0.2.0
- Add a status field to the output of all mutations.