嗨,有什么解决方法可以从字典列表的字段中读取/添加/修改/删除项目吗?我知道 Eve 目前不支持它,所以这里有什么建议吗?
更具体地说,这是我的架构。
companies = {
'employees': {
'type': 'list',
'schema': {
'type': 'dict',
'schema': {
'user': {
'type': 'objectid',
'required': True,
'data_relation': {
'resource': 'users',
'field': '_id',
},
},
'role': {
'type': 'objectid',
'required': True,
'data_relation': {
'resource': 'company_roles',
'field': '_id',
},
},
},
},
}
}
我希望能够对员工进行 CRUD 操作。有什么提示吗?