【发布时间】:2018-05-21 05:19:10
【问题描述】:
我正在尝试将一个项目插入到多维数组中,但我不知道该怎么做。
Meteor.users.update(
{ _id: Meteor.userId() }, { $push: {profile: { friends: "hey" } }}
);
【问题讨论】:
-
你能展示你的架构吗?
-
profile是对象数组还是数组数组?