Skip to content

v2.0.0

Compare
Choose a tag to compare
@wecc wecc released this 17 May 13:11
· 56 commits to master since this release

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.