Loopback hasMany relation doesn't work on mongodb

落爺英雄遲暮 提交于 2019-12-06 15:15:08

Okey... so the problem was one or both of these modules:

"loopback-connector-mongodb": "^1.13.0"
"loopback-datasource-juggler": "^2.39.0"

Since the version number is written as ^#.#.# it means higher but compatible. But one of them wasn't working: https://github.com/strongloop/loopback/issues/274

This caused all the problems.

Simple solution:

"loopback-connector-mongodb": "1.13.0"
"loopback-datasource-juggler": "2.39.0"

I just installed the versions which i know that works.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!