Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/hex/src/data/deps.ts>mongo.BSONRegExp

An ecosystem delivering practices, philosophy and portability.
Go to Latest
class mongo.BSONRegExp
Re-export
import { mongo } from "https://deno.land/x/hex@0.5.15/src/data/deps.ts";
const { BSONRegExp } = mongo;

A class representation of the BSON RegExp type.

Constructors

new
BSONRegExp(pattern: string, options?: string)

Properties

_bsontype: string
options: string
pattern: string

Methods

toExtendedJSON(options?: EJSONOptions): BSONRegExpExtended

Static Methods

fromExtendedJSON(doc: BSONRegExpExtended): BSONRegExp
parseOptions(options?: string): string