indexOf
Returns the index of the first occurrence of a substring within a string.
Arguments
string - The string to search. substring - The substring to search for.
Example
{
"$template": {
"$comment": "The field below will be 8",
"test": "{{indexOf('this is a test', 'test')}}"
}
}