Skip to main content

StartsWith

How to use the StartsWith operator

The StartsWith operator returns the items for which the Starts With condition is satisfied.

Allowed Children

String, Attributes of type string, String Operator and Value Transforms nodes

Requirements

Must have 2 children, the first child is the string to search in, the second child is the string to search for

Return Type

Item Ids Set

Example: String Start With Query

Find items with a attribute value that starts with "Hel":

{
"type": "Query",
"properties": {
"dodiCode": "designs_welcomes",
"attributes": ["attributes_welcomesName"]
},
"children": [
{
"type": "StartsWith",
"children": [
{
"type": "Attribute",
"properties": {
"attributeCode": "attributes_welcomesName"
}
},
{
"type": "String",
"value": ["Hel"]
}
]
}
]
}