You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
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)
The text was updated successfully, but these errors were encountered: