{"issue":{"state":"closed","pull_request":{"diff_url":null,"html_url":null,"patch_url":null},"milestone":null,"user":{"avatar_url":"https://secure.gravatar.com/avatar/c1651aee65a9ddff7c7fa2a4b73f578d?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"c1651aee65a9ddff7c7fa2a4b73f578d","url":"https://api.github.com/users/Dededede4","login":"Dededede4","id":367280},"labels":[],"assignee":null,"updated_at":"2011-11-15T06:47:30Z","comments":6,"closed_at":"2011-11-14T06:41:26Z","url":"https://api.github.com/repos/guileen/node-mongoskin/issues/16","body":"Hello,\r\nin the terminal mongo this works:\r\n\r\nvar f = function(){return (this.root.address.test('testRegex') && this.root.name === 'MyName')};\r\ndb.my.find(f);\r\n\r\nI can not do it on node.js:\r\nvar f = function(){return (this.root.address.test('testRegex') && this.root.name === 'MyName')};\r\ndb.my.find(f).toArray(feedback); //Cannot call method 'toArray' of undefined\r\n\r\nbut :\r\ndb.my.find().toArray(feedback);  // work\r\n\r\nan idea?\r\nthank you !\r\n","html_url":"https://github.com/guileen/node-mongoskin/issues/16","number":16,"title":"search by function ?","id":2220944,"created_at":"2011-11-13T10:55:01Z"},"action":"created","comment":{"user":{"avatar_url":"https://secure.gravatar.com/avatar/c1651aee65a9ddff7c7fa2a4b73f578d?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"c1651aee65a9ddff7c7fa2a4b73f578d","url":"https://api.github.com/users/Dededede4","login":"Dededede4","id":367280},"updated_at":"2011-11-15T06:47:30Z","url":"https://api.github.com/repos/guileen/node-mongoskin/issues/comments/2741565","body":"It will be implanted in node-mongoskin ? Because it works in the mongo shell.","id":2741565,"created_at":"2011-11-15T06:47:30Z"}}