nuwave / lighthouse

A framework for serving GraphQL from Laravel
https://lighthouse-php.com
MIT License
3.36k stars 438 forks source link

Federation v2 `@shareable` types #2485

Closed cappuc closed 9 months ago

cappuc commented 9 months ago

Changes

This PR marks shared types (types that can be shared by multiple services) with the @shareable directive when federation v2 is enabled.

Right now I've updated the pagination types. @spawnia do you think there are other types that makes sense to mark as @shareable?

Breaking changes

None. When using federation v2, types declared in multiple services must be marked as @shareable so right now you must override this types in order to use federation v2

spawnia commented 9 months ago

Thank you, released with https://github.com/nuwave/lighthouse/releases/tag/v6.28.0