Skip to content

Feature Request - API for dynamic model creation #1580

@meepeek

Description

@meepeek

Description / Steps to reproduce / Feature proposal

I have checked in here https://loopback.io/doc/en/lb4/LoopBack-3.x.html and don't think what I am about to mention was existing in the plan so I would like to purpose.

I am using LB 3 and wish the model to be able to create programmatically (run time) by calling an API, instead of manually defining JSON.

Current Behavior

Programmer will have to manually add JSON file, or generate by CLI, for each model. If an additional model is needed, we will have to restart the server.

Expected Behavior

I wish the model can be created either adding JSON file or calling an API and the system will create a model and corresponding JSON file if needed.

Another idea is moving models definition to be defined in lowdb JSON, instead of plain JSON. This way programmer may create their own API to dynamically create models.

See Reporting Issues for more tips on writing good issues

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions