I am new to node and loopback, I wanted to execute a raw query with call back and I am getting result as well in anonymous form My query is :
query = `select u.modelid from ${ schema }.dayjob as u where jobid = 1 and createdat::date > '2019-11-15' and createdat::date < '2019-11-22' ;`
for which I am getting [ anonymous { modelid: 177 } ] as output
Is there any specific way to get rid of 'anonymous' ?
from Node js raw query returns anonymous datatype
No comments:
Post a Comment