mirror of
https://github.com/mongodb/mongo.git
synced 2024-12-01 09:32:32 +01:00
Max/Min Key display - need to make spcial classes though
This commit is contained in:
parent
c4c2b2559a
commit
6b97b0e88b
@ -174,7 +174,17 @@ Local<v8::Object> mongoToV8( BSONObj & m , bool array ){
|
||||
o->Set( v8::String::New( f.fieldName() ) , sub );
|
||||
break;
|
||||
}
|
||||
|
||||
case mongo::MinKey:
|
||||
// TODO: make a special type
|
||||
o->Set( v8::String::New( f.fieldName() ) , v8::String::New( "MinKey" ) );
|
||||
break;
|
||||
|
||||
case mongo::MaxKey:
|
||||
// TODO: make a special type
|
||||
o->Set( v8::String::New( f.fieldName() ) , v8::String::New( "MaxKey" ) );
|
||||
break;
|
||||
|
||||
default:
|
||||
cout << "can't handle type: ";
|
||||
cout << f.type() << " ";
|
||||
|
Loading…
Reference in New Issue
Block a user