Once you have defined a model, then you can use create, read, update, and delete (CRUD) operations to add data to the model, manipulate the data, and query it. All LoopBack models that are connected to persistent data stores (such as a database) automatically have the create, retrieve, update, and delete operations of the PersistedModel class.
|Operation||REST||LoopBack model method
|Read (Retrieve)||GET /modelName?filter=...||
|Delete (Destroy)||DELETE /modelName/modelID||
(*) Methods listed are just prominent examples; other methods may provide similar functionality; for example:
See PersistedModel API documentation for more information.
See the following articles for more information:
- Creating, updating, and deleting data
- Querying data
- Using database transactions
- Realtime server-sent events
Warning: Methods of models in the AngularJS client have a different signature than those of the Node API. For more information, see AngularJS SDK API.