خرید بک لینک

Vote count: 0

I want to create a array of object to mongoDb using expressJs (restful API ) .

I have a array like this :

[ { name: 'java', _id: 578c81ea7d5940501419e819, articles: [] },
  { name: 'C#', _id: 578c81ea7d5940501419e81a, articles: [] },
  { name: 'C++', _id: 578c81ea7d5940501419e81b, articles: [] },
  { name: 'cloud', _id: 578c81ea7d5940501419e81c, articles: [] } ]

How can I insert this array to mongoDB by only one function ? thanks for any help .

asked just now

برچسب: نویسنده: استخدام کار تاريخ: دوشنبه 28 تير 1395 ساعت: 14:43

صفحه بندی