feathersjs-ecosystem / feathers-nedb

A service using NeDB, an embedded datastore for Node.js
MIT License
83 stars 19 forks source link

Please include util function to be exported e.g nfcall #113

Closed jeffreycahyono closed 3 years ago

jeffreycahyono commented 4 years ago

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.

https://github.com/feathersjs-ecosystem/feathers-nedb/blob/cd687b046bdf9eb992cf66f0efd8c321f87f4697/lib/utils.js#L13

daffl commented 4 years ago

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

stale[bot] commented 4 years ago

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.