Wednesday, 12 April 2017

Insert Model Object In Database Table with Loopback

I Created a Application with Loopback . I Created a API (Post) , this api get a json object as data from user (Id :1,Name:'Test') . When i hit this api , i got request with data successfully . I created a json file MYMODEL.json . Now we need to insert this json object using MYMODEL.json Model in DB Table . I used Loopback 'Create' function , but when i hit this api than it inserting blank object in Table with new record .

Problem is that we need to insert data using model in Table .

let me know if you want more info.

Thanks in Advance .



via Rakesh

No comments:

Post a Comment