Hướng dẫn wildcard search mongodb
Docs Home → MongoDB Atlas Show wildcard The
ExampleSuppose that a field ExampleSearching for When using the escape character in ExampleTo create a wildcard expression which searches for any string containing a literal asterisk in an aggregation pipeline, use the following expression: The first and last asterisks act as wildcards which match any characters, and the NoteUse the following expression to escape a literal backslash: ➤ Use the Select your language drop-down menu to set the language of the examples on this page. The following examples use the TipThe following index definition indexes the
The following example searches all The above query returns the following results: The following example searches all The above query returns the following results: The following example searches for documents in which the NoteThe The above query returns the following results: |