Python Eve:列表类型字段上的积垢
您好,对于从字典列表字段中读取/添加/修改/删除项目,是否有解决方法?我知道Eve目前不支持它,所以这里有什么建议吗 更具体地说,这是我的模式Python Eve:列表类型字段上的积垢,python,eve,Python,Eve,您好,对于从字典列表字段中读取/添加/修改/删除项目,是否有解决方法?我知道Eve目前不支持它,所以这里有什么建议吗 更具体地说,这是我的模式 companies = { 'employees': { 'type': 'list', 'schema': { 'type': 'dict', 'schema': { 'user': { 'ty
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操作。有什么提示吗