Skip to content

[4.x]: Unable to set revisionNotes via GraphQL #16943

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

Closed
shishkin opened this issue Mar 24, 2025 · 2 comments
Closed

[4.x]: Unable to set revisionNotes via GraphQL #16943

shishkin opened this issue Mar 24, 2025 · 2 comments
Labels
graphql ⚙️ features related to the GraphQL API

Comments

@shishkin
Copy link

What happened?

Description

revisionNotes field is available for querying but not for writing, which makes it impossible to save entry's revision with a revision note.

Steps to reproduce

  1. Create GraphQL mutation:
mutation MyMutation {
  save_something_default_Entry(
    id: 42
    # this is not available:
    revisionNotes: "Change"
  )
}

Expected behavior

Should be possible to save entries with revision notes via GraphQL API.

Actual behavior

GraphQL schema doesn't support setting revision notes.

Both 4.x and 5.x API docs are missing revisionNotes in save mutations.

Craft CMS version

4.14.11

PHP version

8.2.26

Operating system and version

No response

Database type and version

No response

Image driver and version

No response

Installed plugins and versions

brandonkelly added a commit that referenced this issue Mar 25, 2025
@brandonkelly brandonkelly added graphql ⚙️ features related to the GraphQL API and removed bug craft4 labels Mar 25, 2025
@brandonkelly
Copy link
Member

Added for Craft 4.15 and 5.7! (41e3c20)

@brandonkelly
Copy link
Member

Craft 4.15.0 and 5.7.0 are out with that new argument.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
graphql ⚙️ features related to the GraphQL API
Projects
None yet
Development

No branches or pull requests

2 participants