I'm using node-orm for read and manipulating mysql entities behind an express layer that exposes a set of restful api. My problem is that I want to print the resulting json using the res.json() express method, and this method reads the properties but not call any method except the "standard" get / set way of defining getters/setters. Is it possible to write something like:
Hi,
I'm using node-orm for read and manipulating mysql entities behind an express layer that exposes a set of restful api. My problem is that I want to print the resulting json using the res.json() express method, and this method reads the properties but not call any method except the "standard" get / set way of defining getters/setters. Is it possible to write something like:
instead of:
in Model definition?