Page Contents

Home > @loopback/repository > WhereBuilder > exists

WhereBuilder.exists() method

Add a exists condition

Signature:

exists<K extends KeyOf<MT>>(key: K, val?: boolean): this;

Parameters

Parameter Type Description
key K Property name
val boolean Exists or not

Returns:

this