Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

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

An ecosystem delivering practices, philosophy and portability. Powered By Deno and JavaScript.
Latest
class mongo.BSONRegExp
Re-export
import { mongo } from "https://deno.land/x/hex@0.6.5/src/lib/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