我有一个标准数据,我想只将[users]字段插入mongodb。我在数据库中定义了一个用户模型,并使用“ normalizr” API对我的json数据进行了标准化。最终我该怎么办?
{
"entities": {
"users": {
"nm0000209": {
"id": "nm0000209",
"name": "Tim Robbins"
},
"nm0000151": {
"id": "nm0000151",
"name": "Morgan Freeman"
},
"nm0348409": {
"id": "nm0348409",
"name": "Bob Gunton"
},
"nm0001104": {
"id": "nm0001104",
"name": "Frank Darabont"
},
"nm0000008": {
"id": "nm0000008",
"name": "Marlon Brando"
},
...