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: querying by polymorphic join field relationTo with overrideAccess: false #11999

Merged
merged 1 commit into from
Apr 7, 2025

Conversation

r1tsuu
Copy link
Member

@r1tsuu r1tsuu commented Apr 4, 2025

Previously, querying by polymorphic joins relationTo with overrideAccess: false caused an error:

QueryError: The following paths cannot be queried: relationTo

As this field actually doesn't exist in the schema. Now, under condition that the query comes from a polymorphic join we skip checking relationTo field access.

@r1tsuu r1tsuu force-pushed the fix/joins-override-access branch from 8b2d5bb to 89eba56 Compare April 7, 2025 15:16
@r1tsuu r1tsuu enabled auto-merge (squash) April 7, 2025 20:06
@r1tsuu r1tsuu merged commit b9ffbc6 into main Apr 7, 2025
74 checks passed
@r1tsuu r1tsuu deleted the fix/joins-override-access branch April 7, 2025 20:19
Copy link
Contributor

🚀 This is included in version v3.34.0

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

Successfully merging this pull request may close these issues.

None yet

2 participants