feathersjs-ecosystem / feathers-nedb

A service using NeDB, an embedded datastore for Node.js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Please include util function to be exported e.g nfcall

jeffreycahyono opened this issue · comments

I'm using nedb service and want to add custom methods for example adding clearAll method like this:

  clearAll() {
    return nfcall(this.getModel({}), 'remove', {}, { multi: true });
  }

It would be helpfull if the nfcall function in util.js also exported in final lib so that the user of this library can use it to add another custom function to nedb model.

exports.nfcall = function nfcall (ctx, method) {

This is the same thing as the now built-in NodeJS reqiure('utils').promisify.

commented

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Apologies if the issue could not be resolved. FeathersJS ecosystem modules are community maintained so there may be a chance that there isn't anybody available to address the issue at the moment. For other ways to get help see here.