You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add additional 'dataOptions' parameter to Resultset eqjoin and transform eqJoin step operations to allow removing meta from both left and right sides. This is meant for easier grafting into single object to be inserted into the eqJoin (temporary) collection.
(from techfort/LokiJS#618)
// following cases break chain by returning array data so make any of these last in transform steps
451
451
case"mapReduce":
@@ -1125,13 +1125,14 @@ export class Resultset {
1125
1125
/**
1126
1126
* eqJoin() - Left joining two sets of data. Join keys can be defined or calculated properties
1127
1127
* eqJoin expects the right join key values to be unique. Otherwise left data will be joined on the last joinData object with that key
1128
-
* @param {Array} joinData - Data array to join to.
1128
+
* @param {Array|Resultset|Collection} joinData - Data array to join to.
1129
1129
* @param {(string|function)} leftJoinKey - Property name in this result set to join on or a function to produce a value to join on
1130
1130
* @param {(string|function)} rightJoinKey - Property name in the joinData to join on or a function to produce a value to join on
1131
1131
* @param {function} [mapFun=] - a function that receives each matching pair and maps them into output objects - function(left,right){return joinedObject}
1132
+
* @param {object} dataOptions - optional options to apply to data() calls for left and right sides
1132
1133
* @returns {Resultset} A resultset with data in the format [{left: leftObj, right: rightObj}]
0 commit comments