moleculerjs / database

Advanced Database Access Service for Moleculer microservices framework
MIT License
32 stars 15 forks source link

Suggestion about Field.get Method #45

Open brasiqui opened 1 year ago

brasiqui commented 1 year ago

Hi, Another suggestion. Would it be possible to enable insertion of a string pointing to a method for field.get as it exists in field.set? Sometimes the logic for transforming the value can be extensive and using a method would be more organized.

Thanks, Roni Cruz

brasiqui commented 1 year ago

Now, I wrote a test. But I couldn't run it locally. NPM Install fails.

icebob commented 1 year ago

Could you show the error message?

brasiqui commented 1 year ago

image

brasiqui commented 1 year ago

Tests updated.