I think it would be very handy to be able to add a parse function after an object has been retrieved before instantiating it.
My use case is that the database has field names with underscores, "field_name", but in JavaScript, and the API returns them as camel case "fieldName".
I think it would be very handy to be able to add a parse function after an object has been retrieved before instantiating it.
My use case is that the database has field names with underscores, "field_name", but in JavaScript, and the API returns them as camel case "fieldName".
This is exactly what bookshelf.js supports with parse/format: http://bookshelfjs.org/#Model-parse