mongodb query with regex code example Example: "compass" mongodb filter or search regex { email: RegExp('@gmail.com$', 'i') }