UNPKG

pvserverhelper

Version:

This is an npm module design to perform common uses with pVelocity's pvserver

11 lines (9 loc) 396 B
### ``getAggregateProjectMapping(jsapi, collectionName, filter)`` Returns a mapping of the object found with ``filter`` in ``collectionName`` that can be used in `$project` of an aggregation pipeline. - `jsapi` `<Object>` - `collectionName` `<String>` - `filter` `<Object>` : Optional, default is `{}` ```js pvh.getAggregateProjectMapping(jsapi, 'Opportunities').then(function(result) { }); ```