{"action":"created","issue":{"url":"https://api.github.com/repos/louischatriot/nedb/issues/319","labels_url":"https://api.github.com/repos/louischatriot/nedb/issues/319/labels{/name}","comments_url":"https://api.github.com/repos/louischatriot/nedb/issues/319/comments","events_url":"https://api.github.com/repos/louischatriot/nedb/issues/319/events","html_url":"https://github.com/louischatriot/nedb/issues/319","id":109336880,"number":319,"title":"How to use promises for results instead of callbacks?","user":{"login":"dschissler","id":3968727,"avatar_url":"https://avatars.githubusercontent.com/u/3968727?v=3","gravatar_id":"","url":"https://api.github.com/users/dschissler","html_url":"https://github.com/dschissler","followers_url":"https://api.github.com/users/dschissler/followers","following_url":"https://api.github.com/users/dschissler/following{/other_user}","gists_url":"https://api.github.com/users/dschissler/gists{/gist_id}","starred_url":"https://api.github.com/users/dschissler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dschissler/subscriptions","organizations_url":"https://api.github.com/users/dschissler/orgs","repos_url":"https://api.github.com/users/dschissler/repos","events_url":"https://api.github.com/users/dschissler/events{/privacy}","received_events_url":"https://api.github.com/users/dschissler/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-01T16:32:38Z","updated_at":"2015-10-12T15:58:09Z","closed_at":null,"body":"I'm trying to use ES7 async/await but this library uses callbacks.  How can I transform this into a promise?\r\n\r\n\r\n```javascript\r\n    this.db.findOne({\r\n      property: 'abc'\r\n    }, function(err, doc) {\r\n    });\r\n```"},"comment":{"url":"https://api.github.com/repos/louischatriot/nedb/issues/comments/147445802","html_url":"https://github.com/louischatriot/nedb/issues/319#issuecomment-147445802","issue_url":"https://api.github.com/repos/louischatriot/nedb/issues/319","id":147445802,"user":{"login":"sebikovacs","id":1050189,"avatar_url":"https://avatars.githubusercontent.com/u/1050189?v=3","gravatar_id":"","url":"https://api.github.com/users/sebikovacs","html_url":"https://github.com/sebikovacs","followers_url":"https://api.github.com/users/sebikovacs/followers","following_url":"https://api.github.com/users/sebikovacs/following{/other_user}","gists_url":"https://api.github.com/users/sebikovacs/gists{/gist_id}","starred_url":"https://api.github.com/users/sebikovacs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sebikovacs/subscriptions","organizations_url":"https://api.github.com/users/sebikovacs/orgs","repos_url":"https://api.github.com/users/sebikovacs/repos","events_url":"https://api.github.com/users/sebikovacs/events{/privacy}","received_events_url":"https://api.github.com/users/sebikovacs/received_events","type":"User","site_admin":false},"created_at":"2015-10-12T15:58:09Z","updated_at":"2015-10-12T15:58:09Z","body":"+1"}}