Skip to content

:contains not working on mongo driver #29

@paytonrules

Description

@paytonrules

I found an issue where :contains is working as expected on the in-memory datastore, but is not functioning on mongo.

It's a simple case of:

vushaper.repl=> (find-by-kind (str :project) :filters [:contains :key '("cHJvamVjdDo4OWYwNWM0NTllYTk0N2M4OGQzNGZmNTJhM2M1NjUyNw" "cHJvamVjdDpsbElnRWc5Sw" "cHJvamVjdDpsbElnRWc5Sw" "cHJvamVjdDoxOU45NU1GRA")])
()

Yet if I do the same thing with the monger driver:

vushaper.repl=> (count (mw/find-in "project" '("cHJvamVjdDo4OWYwNWM0NTllYTk0N2M4OGQzNGZmNTJhM2M1NjUyNw" "cHJvamVjdDpsbElnRWc5Sw" "cHJvamVjdDpsbElnRWc5Sw" "cHJvamVjdDoxOU45NU1GRA")))
2

The second is correct. It's fairly nasty since in-memory works.

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