Skip to main content
Module

x/mongo/mod.ts>Bson.BSONRegExp

MongoDB driver for Deno
Extremely Popular
Go to Latest
class Bson.BSONRegExp
Re-export
import { Bson } from "https://deno.land/x/mongo@v0.31.0/mod.ts";
const { BSONRegExp } = Bson;

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