2013-06-18 35 views
0

如何插入打击文档如何向前插入元素到嵌入式数组?

{ 
     "author": "Vic Zhao", 
     "text": "hell..............." 
    } 

到打击文档作为嵌入式阵列的第一个元素评论

{ 
    name: 'Me', 
    comments: [{ 
     "author": "Joe S.", 
     "text": "I'm Thirsty" 
    }, 
    { 
     "author": "Adder K.", 
     "text": "old content" 
    }] 
} 

回答