我有以下猫鼬的“用户”收藏

问题描述

   {
    email: {
      type: String,},customer: [
      {
        name: {
          type: String,mobile: {
          type: Number,entries: [
          {
            date: {
              type: Date,qty: {
              type: Number,price: {
              type: Number,amount: {
              type: Number,],payment: [
          {
            date: {
              type: Date,paymentReceived: {
              type: Number,paymentMode: {
              type: String,

我想通过他们的_id查找用户,如果找到了_id,那么我想添加客户条目,例如价格,金额等,其中customer._id与特定的客户ID匹配。

我尝试了几种技术,但仍然无法根据客户ID和用户电子邮件添加条目

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)