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

x/mongo/mod.ts>Bson.EJSON.deserialize

MongoDB driver for Deno
Extremely Popular
Go to Latest
function Bson.EJSON.deserialize
import { Bson } from "https://deno.land/x/mongo@v0.31.1/mod.ts";
const { deserialize } = Bson.EJSON;

Deserializes an Extended JSON object into a plain JavaScript object with native/BSON types

Parameters

ejson: Document
  • The Extended JSON object to deserialize
optional
options: Options
  • Optional settings passed to the parse method

Returns

SerializableTypes