Skip to content

fix: enable draft arg in nested GraphQL relationship queries - #6141

Merged
JarrodMFlesch merged 6 commits into
mainfrom
fix/graphql-relationship-localization
Apr 30, 2024
Merged

JarrodMFlesch merged 6 commits into
mainfrom
fix/graphql-relationship-localization

Conversation

@JarrodMFlesch

@JarrodMFlesch JarrodMFlesch commented Apr 30, 2024 •

Copy link
Copy Markdown
Contributor

Description

Fixes #4985

Allows draft query arg to cascade when using GraphQL. Now the draft arg will cascade down through relationship fields properly. When a top level doc is queried with the draft flag all applicable child relationships will inherit the nearest draft argument — it can be overridden by setting a new variable on a relationship field.

  • I have read and understand the CONTRIBUTING.md document in this repository.

Type of change

  • Bug fix (non-breaking change which fixes an issue)

Checklist:

  • I have added tests that prove my fix is effective or that my feature works
  • Existing test suite passes locally with my changes
  • I have made corresponding changes to the documentation

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.

GraphQL: Cannot set draft on nested relations. Can set draft where draft is not enabled.

1 participant