Page Contents

Home > @loopback/repository > WhereBuilder > regexp

WhereBuilder.regexp() method

Add a regexp condition

Signature:

regexp<K extends KeyOf<MT>>(key: K, val: string | RegExp): this;

Parameters

Parameter Type Description
key K Property name
val string | RegExp Regexp condition

Returns:

this