Skip to main content
Module

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

MongoDB driver for Deno
Very Popular
Go to Latest
method Bson.Long.fromValue
import { Bson } from "https://deno.land/x/mongo@v0.31.2/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