Skip to content

Instantly share code, notes, and snippets.

@erh
Created May 27, 2009 14:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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