Skip to content

Releases: glesys/butler-graphql

v2.1.0

05 Sep 12:07
b540ff1
Compare
Choose a tag to compare

Changed

  • Support Laravel 6 🎉.

v2.0.1

20 Jun 09:14
d1cc757
Compare
Choose a tag to compare

Fixed

  • When resolving Boolean values from arrays or objects false was incorrectly filtered out, resulting in a null value instead.

v2.0.0

17 May 13:11
Compare
Choose a tag to compare

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 and validation keys previously available next to message in errors has now been moved to the extensions 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 support snake_case, camelCase and kebab-case by default. To change this behaviour you can override the propertyNames(ResolveInfo $info): array method in your GraphQL controller. The old propertyName(ResolveInfo $info): string method has been removed.

v1.2.1

21 Nov 08:53
Compare
Choose a tag to compare

Fixed

  • Stop catching Exceptions in HandlesGraphqlRequests->fieldFromResolver to avoid intercepting Exceptions from the service container.
  • Pass operationName from the request to GraphQL::promiseToExecute.

v1.2.0

14 Sep 10:11
61fae8e
Compare
Choose a tag to compare

Added

Changed

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 to ExceptionHandler->report().

v1.1.2

07 Sep 10:52
6d5f497
Compare
Choose a tag to compare

Fixed

  • Use base_path() instead of app_path() to ensure the default config works in Lumen.

v1.1.1

07 Sep 08:51
ee2ee06
Compare
Choose a tag to compare

Fixed

  • Handle reporting of GraphQL errors (invalid queries and schema validation errors).

v1.1.0

07 Sep 06:36
e21c19f
Compare
Choose a tag to compare

Added

  • Implement error reporting of exceptions during requests.

v1.0.0

06 Sep 11:06
a2df26a
Compare
Choose a tag to compare

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

26 Apr 12:03
Compare
Choose a tag to compare
  • Add a status field to the output of all mutations.