Skip to content

Proper place for selector utilities #141

@LinusU

Description

@LinusU

One quite common use case that I have run into, is to combine two different selectors. This is not as easy at it might first seem, to do Object.assign(selector1, selector2). But rather you must look for any overlap in the keys, and if there are some, use the $and helper. (or always use $and but that can yield large objects)

Would there be an interest of keeping a few utilities somewhere, maybe within this package, or maybe as a separate package, that deals with modifying the objects that goes into mongo-sql?

I'm not sure what would be the most cleanest, just throwing ideas out there :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions