Closed nodesocket closed 7 years ago
Argg figured it out. Caused by using ES6 () => {}
syntax.
It would be awesome if instead of magically using this
, if instead the document was passing into .default((doc) => { console.log(doc); }
.
Hum, this is a pretty standard use of this
. There's another bug to track document for that.
I'm trying to add a virtual field to all models that returns the
url
to the row itself.The field
url
should be/accounts/79c852a1-37cf-4193-a5af-4ac0145569ae
but getting/accounts/undefined
.