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

Merge default array arguments for external types #3096

Open
wants to merge 7 commits into
base: next
Choose a base branch
from

Conversation

tninesling
Copy link
Contributor

When using an external type with a default array argument, the defaults from the different subgraphs were being compared with strict equality. Now, when we come across arrays, we use arrayEquals to check the equality of the individual elements in the arrays. Additionally, this removes an unnecessary assertion from the mismatch reporter, which was hiding the actual error here when composition failed.

…osition errors. Fix an underlying issue where default arguments couldn't be merged when they were arrays
@tninesling tninesling requested a review from a team as a code owner July 24, 2024 19:19
Copy link

changeset-bot bot commented Jul 24, 2024

🦋 Changeset detected

Latest commit: 41d7b89

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 7 packages
Name Type
@apollo/composition Patch
@apollo/gateway Patch
@apollo/federation-internals Patch
@apollo/query-planner Patch
@apollo/query-graphs Patch
@apollo/subgraph Patch
apollo-federation-integration-testsuite Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link

codesandbox-ci bot commented Jul 24, 2024

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

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

Successfully merging this pull request may close these issues.

2 participants