• Convert nodeblocks internal $apply logic tokens to mongo db transformations

    Parameters

    Returns Document[]

    Example

    Generate a mongo query from an apply expression
    const applyExpression: ApplyExpression = {
    transformations: [
    ...
    ]
    }
    const mongoQuery = applyExpressionToMongoQuery(applyExpression);
    // mongoQuery = [
    // {
    // $group: {
    // _id: null,
    // count: { $sum: 1 },
    // }
    // }
    // ];

Generated using TypeDoc