keithwhor / nodal

API Services Made Easy With Node.js

Home Page:http://www.nodaljs.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Set custom values in response meta field

maxism opened this issue · comments

According to the documentation, we ​are to use ItemArray.setMeta method to set up custom values in meta field. However, non-standard meta attributes defined in such way won't be added in any way to response, because in APIConstructor.response or APIConstructor.error methods ItemArray._meta is being converted to standard view { total: total, count: count, offset: offset, error: error }.
I think it would be great to have such functionality added.

I'll look into this for next release. Good call.