Skip to main content
Version: 2024.4

If Empty

Only sets the value if current one is empty. Add the operator to the list and drag & drop the desired field into the operator.

Configuration

ifempty_config.pngifempty_config.pngifempty_config.png

  • Label: Field name to be used in the query.

Example

ifempty_example.pngifempty_example.pngifempty_example.png

Request:

mutation {
updateCar(
id:82
input:{
UpdateDescription:"Description if description is empty"
}
) {
success,
output {
description
}
}
}

Response:

{
"data": {
"updateCar": {
"success": true,
"output": {
"description": "Description if description is empty"
}
}
}
}

[]