Skip to content

Latest commit

 

History

History
32 lines (25 loc) · 367 Bytes

bsontype.md

File metadata and controls

32 lines (25 loc) · 367 Bytes

BSON type

Methods

bsontype:unpack()

Returns bsontype's parameters.

local binary = mongo.Binary('abc', 0x80)
print(binary:unpack())

Output:

abc 128

Operators

tostring(bsontype)

Returns string representation of bsontype.

print(mongo.Regex('abc', 'i'))

Output:

mongo.Regex("abc", "i")