Skip to content

Nested resolver bug replication#5433

Open
dr3 wants to merge 3 commits intoardatan:masterfrom
dr3:ExtendedResolverBug
Open

Nested resolver bug replication#5433
dr3 wants to merge 3 commits intoardatan:masterfrom
dr3:ExtendedResolverBug

Conversation

@dr3
Copy link
Contributor

@dr3 dr3 commented May 16, 2023

Description

Replication case, resolver inside an additionalResolvers only receives __typename, and no data from the response

context.Swapi.Query.pet_by_petId returns
image

When the upstream server returns { "id": "0fc9111f-570d-4ebe-a72e-ff4eb274bc65", }

@changeset-bot
Copy link

changeset-bot bot commented May 16, 2023

⚠️ No Changeset found

Latest commit: d8edebb

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

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

@ardatan
Copy link
Owner

ardatan commented May 17, 2023

In additional resolvers, returned type should match the type of the field of the resolver. Otherwise, selectionSet should be given.

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