Exploring dynamoosev2:
T extends Document;
model: ModelType<T>;
const attributes: string[] = model.schemas[0].attributes();
Is there a different approach to retrieve attribute names from the model in dynamoose v3?
Transitioning to dynamoose v3:
T extends Item;
model: ModelType<T>;
const attributes: string[] = model.schemas[0].attributes();
An error emerges stating:
Property 'schemas' does not exist on type 'ModelType<T>'
.