Immediately publish content using graphql mutation

I have…

I’m submitting a…

  • [ ] Regression (a behavior that stopped working in a new release)
  • [x ] Bug report
  • [ ] Performance issue
  • [ ] Documentation issue or request

Current behavior

I’m trying to publish content immediately using a graphQL mutation.
In the schema docs is the dueTime field set as a nullable field of Instant, but when I pass null or do the mutation without the dueTime parameter I get following result:

{
“data”: {
“publishCircularContent”: null
},
“errors”: [
{
“message”: “Error trying to resolve field ‘publishCircularContent’.”,
“locations”: [
{
“line”: 2,
“column”: 3
}
]
}
]
}

it only works when I pass an iso string of date but then the result I get back is still of status “draft”

Expected behavior

publishContent(expectedVersion: -2, id: $id, status: $status, dueTime: null) {
id
status
}

changes the status immediately

Minimal reproduction of the problem

graphql publish mutation on any content

Environment

  • [x ] Self hosted with docker
  • [ ] Self hosted with IIS
  • [ ] Self hosted with other version
  • [ ] Cloud version

Version: 4.5.0

Browser:

  • [ x] Chrome (desktop)
  • [ ] Chrome (Android)
  • [ ] Chrome (iOS)
  • [ ] Firefox
  • [ ] Safari (desktop)
  • [ ] Safari (iOS)
  • [ ] IE
  • [ ] Edge

Please fill in the version

my bad, version filled in

Okay, I cannot reproduce it anymore. I guess it is already fixed. The 4.X version only gets critical bugfixes, so I recommend to upgrade next week when the new version will be released.