Back to main page

$startsWith

Concept:

Starts with is used to check, whether the field value starts with a specific prefix

Format:

    { "$startsWith" : string }

Example 1:

    {"$startsWith":"prefix"}

Example 2:

    {"$startsWith":"prog"}