0.3.1 • Published 4 years ago

@type-io/bson v0.3.1

Weekly downloads
-
License
MIT
Repository
-
Last release
4 years ago

@type-io/bson

Add BSON data type support to type-io which can be used for MongoDb

Installation

Node:

npm install @type-io/bson

Yarn:

yarn add @type-io/bson

Built-In

How to read table bellow:

class Example {
  @Prop({ type: <<Specified Type>> })
  propertyName: <<Instanced Type>>
}

BsonParser

Supported type: All type from PlainParser and...

Instanced TypeInput typeOutput TypeSpecified Type
NumberInt32, Double, Number, String, BooleanInt32Int32
Int32Int32, Double, Number, String, BooleanInt32
StringLong, Int32, Double, Number, String, BooleanLongLong
LongLong, Int32, Double, Number, String, BooleanLong
NumberInt32, Double, Number, String, BooleanDoubleDouble
DoubleInt32, Double, Number, String, BooleanDouble
StringDecimal128, Long, Int32, Double, Number, String, BooleanDecimal128Decimal128
Decimal128Decimal128, Long, Int32, Double, Number, String, BooleanDecimal128
StringObjectId, ObjectID, StringObjectIdObjectId
ObjectIdObjectId, ObjectID, StringObjectId
BufferBuffer, String, Binary, UInt8Array, Number[]Binary
BinaryBuffer, String, Binary, UInt8Array, Number[]Binary
StringString, Timestamp, Number, LongTimestampTimestamp
TimestampString, Timestamp, Number, LongTimestamp

PlainBsonParser

Supported type: All type from PlainParser and...

Instanced TypeInput typeOutput TypeSpecified Type
Int32Int32, Double, Number, String, BooleanNumber
LongLong, Int32, Double, Number, String, BooleanString
DoubleInt32, Double, Number, String, BooleanNumber
Decimal128Decimal128, Long, Int32, Double, Number, String, BooleanString
ObjectIdObjectId, ObjectID, StringString
BinaryBuffer, String, Binary, UInt8Array, Number[]Buffer
TimestampString, Timestamp, Number, LongString
0.3.1

4 years ago

0.3.0

4 years ago

0.2.0

4 years ago

0.1.0

4 years ago