Skip to content

[Fixed] whereIn appears to be partial matching strings #17

@davidmuggleton

Description

@davidmuggleton

Package version

ex: v2.10.3 (NB!)

Describe the bug

A clear and concise description of what the bug is.

Say we have the following document:

{
     name: 'John Smith',
     jobs: ['AI Inc', 'Loops Services'] <!- keyword field
}

and we do a query

Person::whereIn('jobs', ['AI', 'Loops'])->get();

We would expect no results, however, the query IS matching with the example provided.

To Reproduce

Steps to reproduce the behavior:

Expected behavior

A clear and concise description of what you expected to happen.


Screenshots:
If applicable, add screenshots to help explain your problem.

Component Versions (Paste in the require section from your composer.json file):

  "require": {
  
  },

Additional context:
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions