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

fix(graphql): loading of polymorphic hasMany relationships #9175

Merged

Conversation

mattddean
Copy link
Contributor

@mattddean mattddean commented Nov 13, 2024

What?

Bug #9173

Why?

collectionSlug is an array when isRelatedToManyCollections is true

How?

Compare array to array

Fixes #9173

Screenshot 2024-11-13 at 12 37 52 PM

@mattddean mattddean changed the title Fixes loading graphql related documents for polymorphic hasMany fields fix(graphql): Fixes loading graphql related documents for polymorphic hasMany fields Nov 13, 2024
@mattddean mattddean changed the title fix(graphql): Fixes loading graphql related documents for polymorphic hasMany fields fix(graphql): fixes loading graphql related documents for polymorphic hasMany fields Nov 13, 2024
Copy link
Member

@r1tsuu r1tsuu left a comment

Choose a reason for hiding this comment

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

That looks good, thanks for the fix @mattddean!

@r1tsuu r1tsuu changed the title fix(graphql): fixes loading graphql related documents for polymorphic hasMany fields fix(graphql): loading of polymorphic hasMany relationships Nov 18, 2024
@r1tsuu r1tsuu merged commit 0075b99 into payloadcms:main Nov 18, 2024
58 of 64 checks passed
@mattddean mattddean deleted the fix/graphql-hasmany-polymorphic-loading branch November 18, 2024 20:27
Copy link

🚀 This is included in version v3.0.0-beta.135

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.

Cannot load hasMany polymorphic related documents with GraphQL
2 participants