Skip to content
Snippets Groups Projects
Commit 3fb02752 authored by Inès Yeterian's avatar Inès Yeterian
Browse files

try to add merge operation to aggregation pipeline

parent 0b1272c7
No related branches found
No related tags found
1 merge request!4Url/year/title
......@@ -22,6 +22,7 @@ const urltoucans = Toucan.aggregate([
{urlId:
{$concat:["$titlelcnospace","-","$year"]}}},
{$unset:["titlelc","year","titlelcnospace","title","date"]},
{$merge : "urls"}
]);
router.route("/toucans")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment