You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've asked the question on SO, basically I'd like to have an example of a LIKE query : which silently gives no results (does not throw any error and doesn't answer correctly) knowing that in mongoose, filter: { name: "/MICH/i" } will return results where name is LIKE "mich" in a case insensitive search:
{
userMany(filter: { name: "/MICH/i" }, limit: 5, sort: _ID_ASC) {
name
languages {
language
skill
}
contacts {
email
}
gender
age
}
}
The text was updated successfully, but these errors were encountered:
UserTC.getResolver('findMany').addFilterArg({name: 'nameRegexp',type: 'String',// also can be 'Int Float Boolean ID String! [String] AnyNamedType' description: 'Search by regExp',query: (rawQuery,value,resolveParams)=>{rawQuery.name=newRegExp(value,'i');},})
Then you may write such query:
{
userMany(filter: { nameRegexp: "MICH" }, limit: 5, sort: _ID_ASC) {
name
languages {
language
skill
}
contacts {
email
}
gender
age
}
}
Hi All,
I've asked the question on SO, basically I'd like to have an example of a LIKE query : which silently gives no results (does not throw any error and doesn't answer correctly) knowing that in mongoose, filter: { name: "/MICH/i" } will return results where name is LIKE "mich" in a case insensitive search:
The text was updated successfully, but these errors were encountered: