Class: __object

__object()

new __object()

The __ object can be used as a shortcut to the Collection and Context objects. It derives from the Collection object via prototype and defines request and response properties which are shortcuts to getContext().getRequest() and getContext().getResponse().

Properties:
Name Type Description
request Request Alias for getContext().getRequest()
response Response Alias for getContext().getResponse()
Implements:
Source:
Example
var result = __.filter(function(doc) { return doc.id == 1; });
if(!result.isAccepted) throw new Error("the call was not accepted");