bencaimano@Bens-MacBook-Pro:/Users/bencaimano/tests/SERVER-5677 [0]$ ./test-min-max.sh
|
MongoDB shell version: 3.2.19
|
connecting to: test
|
switched to db SERVER-8052
|
false
|
{
|
"acknowledged" : true,
|
"insertedIds" : [
|
{ "$maxKey" : 1 },
|
0,
|
Infinity,
|
{ "$minKey" : 1 },
|
-Infinity
|
]
|
}
|
{ "_id" : { "$minKey" : 1 } }
|
{ "_id" : -Infinity }
|
{ "_id" : 0 }
|
{ "_id" : Infinity }
|
{ "_id" : { "$maxKey" : 1 } }
|
bye
|
2018-03-20T13:54:01.945-0400 connected to: localhost
|
2018-03-20T13:54:01.946-0400 exported 5 records
|
{"_id":{"$maxKey":1}}
|
{"_id":0.0}
|
{"_id":+Infinity}
|
{"_id":{"$minKey":1}}
|
{"_id":-Infinity}
|
2018-03-20T13:54:02.007-0400 connected to: localhost
|
2018-03-20T13:54:02.008-0400 dropping: SERVER-8052.idKeys
|
2018-03-20T13:54:02.037-0400 imported 5 documents
|
MongoDB shell version: 3.2.19
|
connecting to: test
|
switched to db SERVER-8052
|
{ "_id" : { "$minKey" : 1 } }
|
{ "_id" : -Infinity }
|
{ "_id" : 0 }
|
{ "_id" : Infinity }
|
{ "_id" : { "$maxKey" : 1 } }
|
bye
|