github nuwave/lighthouse v5.1.0

latest releases: v6.45.0, v6.44.2, v6.44.1...
3 years ago

Added

  • Allow spec-compliant definition of the messages argument on @rules and @rulesForArray #1662
  • Validate correct usage of @rules and @rulesForArray #1662
  • Allow eager-loading multiple relations on a single field using @with #1528
  • Add \Nuwave\Lighthouse\Execution\DataLoader\BatchLoaderRegistry to instantiate arbitrary batch loaders #1528
  • Add @limit directive to allow clients to specify the maximum number of results to return #1674
  • Predefine default field ordering by using @orderBy on fields #1678

Changed

  • Improve batch loading performance #1528
  • Require webonyx/graphql-php version ^14.5

Deprecated

  • Deprecate the globalId argument on the @delete, @forceDelete and @restore directives #1660
  • Deprecate passing the messages argument on @rules and @rulesForArray as a map with arbitrary keys #1662
  • Deprecate \Nuwave\Lighthouse\Execution\DataLoader\BatchLoader in favour of \Nuwave\Lighthouse\Execution\DataLoader\BatchLoaderRegistry #1528

Fixed

  • Remove non-functional globalId argument definition from @update #1660
  • Resolve field middleware directives in lexical order #1666
  • Ensure Carbon\Carbon is cast to Illuminate\Support\Carbon in date scalars #1672
  • Fix Laravel 5.6 compatibility for @withCount and paginated relationship directives #1528
  • Fix issue where argument names where used instead of variable names in subscription queries #1683
  • Fix issue with TTL breaking subscriptions #1685

Don't miss a new lighthouse release

NewReleases is sending notifications on new releases.