Page Contents

Home > @loopback/repository > Entity > getIdObject

Entity.getIdObject() method

Get the identity as an object, such as {id: 1} or {schoolId: 1, studentId: 2}

Signature:

getIdObject(): Object;

Returns:

Object