Skip to content

Instantly share code, notes, and snippets.

@ngw
Created August 5, 2010 01:24
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 ngw/509073 to your computer and use it in GitHub Desktop.
Save ngw/509073 to your computer and use it in GitHub Desktop.
var user = User.find( { first_name : 'Nicholas' } ).exec( );
user.first( function(result) {
sys.puts( result.__doc.first_name );
});
user.first( function(result) {
sys.puts( result.__doc.last_name );
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment