neumino / thinky

JavaScript ORM for RethinkDB
http://justonepixel.com/thinky/
Other
1.12k stars 128 forks source link

Virtual functions to have access to the whole document #619

Open cur3n4 opened 7 years ago

cur3n4 commented 7 years ago

Virtual functions to receive an extra argument so that they can do more complex calculations by having access to the full object.

marshall007 commented 7 years ago

@cur3n4 this already refers to the document in the context of virtual field functions.

cur3n4 commented 5 years ago

@cur3n4 this already refers to the document in the context of virtual field functions.

A few years late, but just saw the comment. It does, but not when the virtual is included in an element in array, in that case this is each of the array elements.