$substring
Filter records where a column’s value contains a specified substring. The $substring method is used to retrieve entries that include a given string anywhere within the value, making it useful for flexible text searches.
await Member.$search({
$where: {
username: {
$substring: 'five'
}
}
});
Last updated