我有一个品牌,一个型号和一辆车。我只想通过给定的品牌Id获得所有车辆。。 我很抱歉
车辆模式在数据库源中有此项
'model': {
'type': 'objectid',
'data_relation': {
'resource': 'vehicle_model',
'field': '_id',
'embeddable': True
},
'required': True
},
车辆模型有以下来源:
'brand': {
'type': 'objectid',
'data_relation': {
'resource': 'vehicle_brand',
'field': '_id',
'embeddable': True
},
'required': True
},
所以,当我试图通过给定的品牌id获取所有车辆时,它返回空的
http://localhost/vehicle?where=model.brand==5ab63e9c63da12227a2d3e43
有没有办法过滤两层嵌入式资源
目前没有回答
相关问题 更多 >
编程相关推荐