mswjs / data

Data modeling and relation library for testing JavaScript applications.

Home Page:https://npm.im/@mswjs/data

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

It's impossible to use case insensitive search via "where" statement

alexeygorbachevsky opened this issue · comments

some="Abc"

where: {
some: {
contains: "abc",
},
},

Actual result: no matches

I have the same problem, it would be great if we could do something like this:

where: {
  name: {
    contains: 'search text',
    caseSensitive: false,
  }
}

Alternatively, new case insensitive string operators would also do the trick. Something like ciContains, ciNotContains, ciEquals, ciNotEquals...