Scrubber

Scrubber

new Scrubber()

An object scrubber for the proxy's internal use. The scrubber is used to convert incoming object to mongodb friendly objects and vice versa.

Methods

inbound(object) → {object}

Converts to an incoming object
Parameters:
Name Type Description
object object The target object
Returns:
Type
object

outbound(object) → {object}

Converts to an outgoing object
Parameters:
Name Type Description
object object The target object
Returns:
Type
object