Skip to content

[FEATURE] Support Additional MongoDB Operators #7

@kashifkhan0771

Description

@kashifkhan0771

Feature Description

Add support for more MongoDB operators like $in, $nin, $exists, $size, etc.


Use Case

$in: When you need to check if a field's value matches any value in a given array.
$nin: When you need to exclude documents where a field's value matches any value in a given array.
$exists: When you need to find documents where a field either exists or does not exist.
$size: When you need to find documents where an array field has a specific number of elements.


Proposed Solution

Extend the Operator enum.


Pseudo Code

AddFilter("tags", []string{"golang", "mongodb"}, mongoq.In)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestgood first issueGood for newcomershelp wantedExtra attention is neededoperatorEnhancement or issues related to MongoDB operator implementation.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions