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

Generate correct return types in IdentityCache compiler #1939

Merged
merged 1 commit into from
Jun 27, 2024

Conversation

egiurleo
Copy link
Contributor

There is a difference in behavior between the return types of the existing IdentityCache compiler and how IdentityCache compiler actually works.

In the aliased fetch methods, IdentityCache will return an array unless the field has the unique property, even if it is not a multi-type. Previously, our IdentityCache compiler was always setting the return type as a single object for those methods.

There is a difference in behavior between the return types of the existing
IdentityCache compiler and how IdentityCache compiler actually works.

In the aliased fetch methods, IdentityCache will return an array unless
the field has the `unique` property, even if it is not a multi-type.
Previously, our IdentityCache compiler was always setting the return type
as a single object for those methods.
@egiurleo egiurleo added bug Something isn't working bugfix and removed bug Something isn't working labels Jun 21, 2024
@egiurleo egiurleo marked this pull request as ready for review June 25, 2024 18:36
@egiurleo egiurleo requested a review from a team as a code owner June 25, 2024 18:36
Copy link
Contributor

@bitwise-aiden bitwise-aiden left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🙏🏻

@egiurleo egiurleo merged commit 3854808 into main Jun 27, 2024
33 of 34 checks passed
@egiurleo egiurleo deleted the emily/identity-cache branch June 27, 2024 14:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants