【发布时间】:2015-05-06 14:07:57
【问题描述】:
我在 settings.py 中定义了以下资源,
builds = {
'item_title': 'builds',
'schema': {
'sources': {
'type': 'list',
'schema': {
'type': 'objectid',
'data_relation': {
'resource': 'sources',
'embeddable': True,
}
}
},
'checkin_id': {
'type': 'string',
'required': True,
'minlength': 1,
},
}
}
当我尝试根据值为 objectid 的成员进行过滤时,我得到空列表。
http://127.0.0.1:5000/builds?where={"sources":"54e328ec537d3d20bbdf2ed5"}
54e328ec537d3d20bbdf2ed5 是源的id
有没有办法做到这一点?
【问题讨论】: