Page Contents
Home > @loopback/repository > ModelDefinition > idProperties
ModelDefinition.idProperties() method
Get an array of names of ID properties, which are specified in the model settings or properties with id
attribute.
Signature:
idProperties(): string[];
Returns:
string[]
Example
{
settings: {
id: ['id']
}
properties: {
id: {
type: 'string',
id: true
}
}
}