mongoexport的时候抛出错误
Invalid BSON object type for CSV output: 10
以下列出BSON TYPE:
BSON Types
BSON is a binary serialization format used to store documentsand make remote procedure calls in MongoDB. The BSON specification islocated at bsonspec.org.
BSON supports the following data types as values in documents. Each datatype has a corresponding number that can be used with the$type operator to query documents by BSON type.
Type | Number |
Double | 1 |
String | 2 |
Object | 3 |
Array | 4 |
Binary data | 5 |
Object id | 7 |
Boolean | 8 |
Date | 9 |
Null | 10 |
Regular Expression | 11 |
JavaScript | 13 |
Symbol | 14 |
JavaScript (with scope) | 15 |
32-bit integer | 16 |
Timestamp | 17 |
64-bit integer | 18 |
Min key | 255 |
Max key | 127 |
When comparing values of different BSON types, MongoDB usesthe following comparison order, from lowest to highest:
- MinKey (internal type)
- Null
- Numbers (ints, longs, doubles)
- Symbol, String
- Object
- Array
- BinData
- ObjectId
- Boolean
- Date, Timestamp
- Regular Expression
- MaxKey (internal type)
MongoDB treats some types as equivalent for comparison purposes. Forinstance, numeric types undergo conversion before comparison.
##############################################
迷途小运维随笔
转载请注明出处
作者:john