Skip to content

Conversation

@i-just
Copy link
Contributor

@i-just i-just commented Sep 1, 2025

Description

Allows for an unpublished draft of an Entry to be created via GraphQL mutation.

To do so, you need to use the save_{sectionHandle}_{typeHandle}_Draft mutation with a new asUnpublishedDraft parameter set to true.

In order for this to work, the draftId parameter is only mandatory when asUnpublishedDraft is not present or is not set to true.

Related issues

#17803

@i-just i-just requested a review from brandonkelly September 1, 2025 14:51
@i-just i-just marked this pull request as draft September 1, 2025 15:01
@i-just
Copy link
Contributor Author

i-just commented Sep 1, 2025

moving to a draft to work on tests

@i-just i-just marked this pull request as ready for review September 1, 2025 16:35
# Conflicts:
#	src/web/assets/cp/dist/css/cp.css
#	src/web/assets/cp/dist/css/cp.css.map
[ci skip]
@brandonkelly brandonkelly merged commit a1b5ad8 into 5.9 Sep 1, 2025
@brandonkelly brandonkelly deleted the feature/17803-gql-create-unpublished-draft branch September 1, 2025 22:16
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.

3 participants