From 78e4faeac4c5bac5b1dfcba9b17c3917e73721a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20R=C3=BCckstie=C3=9F?= Date: Fri, 25 Jul 2014 22:28:29 -0400 Subject: [PATCH] made the example more intuitive having the same label twice ("fun") is possible, but not really intuitive, especially since we mention in the next sentence "each document is identical except for the value of the tags field". also made a bit more realistic example matching the books/author theme. --- .../reference/operator/aggregation/unwind.txt | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/source/reference/operator/aggregation/unwind.txt b/source/reference/operator/aggregation/unwind.txt index 9c61c10738e..f287cc5c540 100644 --- a/source/reference/operator/aggregation/unwind.txt +++ b/source/reference/operator/aggregation/unwind.txt @@ -42,21 +42,21 @@ $unwind (aggregation) "result" : [ { "_id" : ObjectId("4e6e4ef557b77501a49233f6"), - "title" : "this is my title", - "author" : "bob", - "tags" : "fun" + "title" : "the ultimate guide of leaves and trees", + "author" : "bob green", + "tags" : "gardening" }, { "_id" : ObjectId("4e6e4ef557b77501a49233f6"), - "title" : "this is my title", - "author" : "bob", - "tags" : "good" + "title" : "the ultimate guide of leaves and trees", + "author" : "bob green", + "tags" : "hobby" }, { "_id" : ObjectId("4e6e4ef557b77501a49233f6"), - "title" : "this is my title", - "author" : "bob", - "tags" : "fun" + "title" : "the ultimate guide of leaves and trees", + "author" : "bob green", + "tags" : "nature" } ], "OK" : 1