craftcms / cms

Build bespoke content experiences with Craft.
https://craftcms.com
Other
3.22k stars 626 forks source link

[5.x]: Response on Grapqhl Entry deletion is null #15465

Closed The-Dan-Main closed 1 month ago

The-Dan-Main commented 1 month ago

What happened?

Description

When i delete an entry via graphql, it should return a boolean, whether the deletion was succesfull or not (information from docs), but it returns "nulll" at all times.

Steps to reproduce

1.delete an entry via id with graphql

Expected behavior

to return a boolean, which outsputs the successfulness of my mutation.

Actual behavior

it returns null, in both cases (entry existed and is deleted now // entry did not exist and therefore was not deleted)

Craft CMS version

5.2.9 Pro

PHP version

8.3.7

Operating system and version

Plesk Obsidian with Debian Base

Database type and version

No response

Image driver and version

No response

Installed plugins and versions

-

brandonkelly commented 1 month ago

Thanks for reporting that! Fixed for the next Craft 4 and 5 releases.

brandonkelly commented 1 month ago

Craft 4.10.8 and 5.2.10 are out with that fix. Thanks again!