Note: This example works on MongoDB shell version: 2.0.2.