我试图在 MongoDB 中以以下格式创建一个新集合。但我不能这样做。
以下是我的收藏创建代码。任何人都可以尝试相同的代码并尝试创建收藏。请帮助我。提前致谢。
db.MasterAccount_AccountUser.insert
(
 {
MasterAccountID: 100,
MasterAccountName: 'LMS Plumber Inc',
AccountOwner: 'John',
AccountUser:[
         {
        AccountUserID: 1001,
        AccountUserName: 'John',
        AccountUserRole: 'Admin',
        AccountUserEmailID: 'john@lms.com',
        AccountUserPhoneNumber: '8132546363'
             },
         {
        AccountUserID: 1002,
        AccountUserName: 'Matt',
        AccountUserRole: 'User', 
        AccountUserEmailID: 'matt@lms.com',
        AccountUserPhoneNumber: '8132546362'
         },
         {
        AccountUserID: 1003,
        AccountUserName: 'Dan',
        AccountUserRole: 'User',
        AccountUserEmailID: 'dan@lms.com',
        AccountUserPhoneNumber: '8132568945'
         }  
        ]       
  }
)
问候。