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

(core) - Fix maskTypename not handling nested arrays #2074

Merged
merged 3 commits into from
Nov 10, 2021
Merged

Conversation

JoviDeCroock
Copy link
Collaborator

resolves #2072

Summary

maskTypename wasn't taking array shapes in account when traversing the result shape

Set of changes

  • add isArray argument to maskTypename so the recursion can hold on to array shapes

@changeset-bot
Copy link

changeset-bot bot commented Nov 10, 2021

🦋 Changeset detected

Latest commit: 1f950e6

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

This PR includes changesets to release 1 package
Name Type
@urql/core 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

@JoviDeCroock JoviDeCroock changed the title Doc cache bug (core) - fix make masktypename take array in accounts Nov 10, 2021
@JoviDeCroock JoviDeCroock changed the title (core) - fix make masktypename take array in accounts (core) - fix make masktypename take array in account Nov 10, 2021
@kitten kitten changed the title (core) - fix make masktypename take array in account (core) - Fix maskTypename not handling nested arrays Nov 10, 2021
@JoviDeCroock JoviDeCroock merged commit f85b47e into main Nov 10, 2021
@JoviDeCroock JoviDeCroock deleted the doc-cache-bug branch November 10, 2021 18:08
@urql-ci urql-ci mentioned this pull request Nov 10, 2021
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.

(core) - maskTypename option mangles nested lists in JSON result
2 participants