Options
All
  • Public
  • Public/Protected
  • All
Menu

Type Parameters

  • K extends "double" | 1 | "string" | 2 | "objectId" | 7 | "bool" | 8 | "date" | 9 | "int" | 16 | "long" | 18 | "decimal" | 19 = "double" | 1 | "string" | 2 | "objectId" | 7 | "bool" | 8 | "date" | 9 | "int" | 16 | "long" | 18 | "decimal" | 19

Hierarchy

  • Convert

Index

Properties

Properties

$convert: { input: any; to: K; onError?: any; onNull?: any }

Checks if the specified expression resolves to one of the following numeric

  • Integer
  • Decimal
  • Double
  • Long
version

4.4

see

https://docs.mongodb.com/manual/reference/operator/aggregation/convert/#mongodb-expression-exp.-convert

Type declaration

  • input: any
  • to: K
  • Optional onError?: any
  • Optional onNull?: any

Generated using TypeDoc