0
0
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:
Eliot Horowitz 2009-03-26 16:17:08 -04:00
parent c4c2b2559a
commit 6b97b0e88b

View File

@ -175,6 +175,16 @@ Local<v8::Object> mongoToV8( BSONObj & m , bool array ){
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() << " ";