【发布时间】:2016-06-21 18:25:43
【问题描述】:
我想知道这两种 bson (javascript/javascriptwithscope) 的用途; 作为 bson 的基本类型。
它的用例是什么以及如何生成一个javascriptwithscope对象保存在mongodb中?
类型编号别名注释
Double 1 “double”
String 2 “string”
Object 3 “object”
Array 4 “array”
Binary data 5 “binData”
Undefined 6 “undefined” Deprecated.
ObjectId 7 “objectId”
Boolean 8 “bool”
Date 9 “date”
Null 10 “null”
Regular Expression 11 “regex”
DBPointer 12 “dbPointer”
JavaScript 13 “javascript”
Symbol 14 “symbol”
JavaScript (with scope) 15 “javascriptWithScope”
32-bit integer 16 “int”
Timestamp 17 “timestamp”
64-bit integer 18 “long”
Min key -1 “minKey”
Max key 127 “maxKey”
【问题讨论】:
标签: javascript mongodb bson