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

x/model/dependencies/mongo.ts>Bson.Code#toJSON

model based mongo for deno
Latest
method Bson.Code.prototype.toJSON
Re-export
import { Bson } from "https://deno.land/x/model@v1.2/dependencies/mongo.ts";
const { Code } = Bson;

Returns

{ code: string | Function; scope?: Document; }