Page Contents

Home > @loopback/repository > Entity > getId

Entity.getId() method

Get the identity value. If the identity is a composite key, returns an object.

Signature:

getId(): any;

Returns:

any