Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Federation v2 @shareable types #2485

Merged
merged 9 commits into from
Dec 11, 2023

Conversation

cappuc
Copy link
Contributor

@cappuc cappuc commented Dec 11, 2023

  • Added or updated tests
  • Documented user facing changes
  • Updated CHANGELOG.md

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

@cappuc cappuc mentioned this pull request Dec 11, 2023
3 tasks
src/Federation/FederationHelper.php Outdated Show resolved Hide resolved
src/Federation/FederationHelper.php Outdated Show resolved Hide resolved
tests/Integration/Federation/FederationSchemaTest.php Outdated Show resolved Hide resolved
@spawnia spawnia added the enhancement A feature or improvement label Dec 11, 2023
@spawnia spawnia merged commit 3a9a7f6 into nuwave:master Dec 11, 2023
22 checks passed
@spawnia
Copy link
Collaborator

spawnia commented Dec 11, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement A feature or improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants