Upload LIST of Media files to Mongodb using EVE API framework return maximum recursion Error

I have EVE up and running and have my schema defined as per docs: accounts = { ‘name’: {‘type’: ‘string’}, ‘multimedia’: {‘type’: ‘media’} } I can send a multipart/form-data request with one file but I want to send LIST of Media files. I already followed the documentation and added the following settings: # This flag…

MongoDB : Keep only first date

I’ve got an aggregation that get me all the actions of my users. “uniqueAction” : [ null, “18.08.2018”, “04.09.2018”, “05.03.2019”, “07.08.2019”, “12.06.2018”, “13.02.2019”, “13.03.2019”, “15.05.2019”, “15.07.2019”, “16.08.2018”, “17.07.2018”, “18.04.2018”, “18.06.2019”, “18.10.2018”, “21.06.2018”, “21.09.2019”, “22.01.2019”, “22.09.2019”, “23.07.2019”, “23.08.2019”, “24.07.2019”, “25.06.2019”, “25.10.2018”, “26.10.2018”, “27.06.2019”, “31.07.2019” ] Now, I’m looking for a solution to keep only the first…

MongoDB : Keep only first date

I’ve got an aggregation that get me all the actions of my users. “uniqueAction” : [ null, “18.08.2018”, “04.09.2018”, “05.03.2019”, “07.08.2019”, “12.06.2018”, “13.02.2019”, “13.03.2019”, “15.05.2019”, “15.07.2019”, “16.08.2018”, “17.07.2018”, “18.04.2018”, “18.06.2019”, “18.10.2018”, “21.06.2018”, “21.09.2019”, “22.01.2019”, “22.09.2019”, “23.07.2019”, “23.08.2019”, “24.07.2019”, “25.06.2019”, “25.10.2018”, “26.10.2018”, “27.06.2019”, “31.07.2019” ] Now, I’m looking for a solution to keep only the first…

How to update/insert into a mongodb collection with the result of aggregate query on the another collection

I have a below aggregate query and I wanted to insert/update this result into another collection. db.coll1.aggregate([ { $group: { _id: “$collId”, name: {$first:”$name”} , type: {$first:”$Type”} , startDate: {$first:”$startDate”} , endDate: {$first:”$endDate”} } } ]) I have another collection coll2, which has fields in the above query and some additional fields too. I may…