The trim() function removes any leading and trailing spaces of a string and returns the modified string.
trim(str)
| Argument | Type | Description |
|---|---|---|
str | String | The string to modify |
Return type: String
UQLreturn trim(" cloud service ")
Result: cloud service
Remove any leading and trailing spaces from the input before saving it into the database.
UQLwith " [email protected] " as input insert().into(@user).nodes({email: trim(input)})