Open akhilsky opened 7 years ago
Hello. I have been having the same issue and I fixed it by getting rid of the whole
Test.create({ "first_name":"akhil" },function(data){ console.log(data); })
Try using the explorer instead at localhost:3000/explorer
If that doesn't solve it, try refactoring all instances of the variable db to mongoDS or the opposite.
@akhilsky lmk if this solved your issue!
I am getting error: Error: Cannot call Test.create(). The create method has not been setup The PersistedModel has not been correctly attached to a datasource.
Here is my datasource.json:
model-config.json:
test.js
test.json
Your help will be highly appreciated
Bug or feature request
Description of feature (or steps to reproduce if bug)
Link to sample repo to reproduce issue (if bug)
Expected result
Actual result (if bug)
Additional information (Node.js version, LoopBack version, etc)