From 3fb02752428925f841aa3d657c5c3b85aab6275d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?In=C3=A8s=20Yeterian?= <ines.yeterian@student-cs.fr> Date: Sat, 22 Jan 2022 01:19:33 +0100 Subject: [PATCH] try to add merge operation to aggregation pipeline --- backend/routes/routesToucan.js | 1 + 1 file changed, 1 insertion(+) diff --git a/backend/routes/routesToucan.js b/backend/routes/routesToucan.js index c9fa1c6..52c42d4 100644 --- a/backend/routes/routesToucan.js +++ b/backend/routes/routesToucan.js @@ -22,6 +22,7 @@ const urltoucans = Toucan.aggregate([ {urlId: {$concat:["$titlelcnospace","-","$year"]}}}, {$unset:["titlelc","year","titlelcnospace","title","date"]}, + {$merge : "urls"} ]); router.route("/toucans") -- GitLab