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

x/mongo/mod.ts>Bson.Long.fromValue

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

Converts the specified value to a Long.

Parameters

val: number | string | { low: number; high: number; unsigned?: boolean; }
  • Whether unsigned or not, defaults to signed
optional
unsigned: boolean