Skip to content

Instantly share code, notes, and snippets.

@erh
Created May 27, 2009 14:31
Show Gist options
  • Save erh/118664 to your computer and use it in GitHub Desktop.
Save erh/118664 to your computer and use it in GitHub Desktop.
t = db.blah;
t.drop();
t.save( { screenshots : 1 } )
t.save( { screenshots : [ 1 ] } )
printjson( t.find( { "$where" : "this.screenshots instanceof Array" } ).toArray() )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment