1
00:00:00,330 --> 00:00:08,310
All right, and once we can see our console logs with product daddy before we start setting up aggregation

2
00:00:08,310 --> 00:00:14,400
pipeline, I want to set up everything from scratch, meaning I want to log in as admin.

3
00:00:14,940 --> 00:00:20,820
I want to remove all the products, then add one product and then add two reviews.

4
00:00:21,510 --> 00:00:24,540
Since that way, we'll all be on the same page.

5
00:00:24,870 --> 00:00:26,760
So let me go back to the postman.

6
00:00:27,790 --> 00:00:35,770
When I logged in as John, in my case, since John is admin and let me get all the product, I wanted

7
00:00:35,780 --> 00:00:39,370
to remove the ones that I have currently, I have free.

8
00:00:40,660 --> 00:00:43,240
So you might take a little bit of time.

9
00:00:44,310 --> 00:00:45,660
But they removed this one.

10
00:00:48,490 --> 00:00:49,600
Scroll to the next one.

11
00:00:51,090 --> 00:00:52,380
And than one as well.

12
00:00:54,510 --> 00:01:00,480
Over here and then our third one all the way in the bottom.

13
00:01:01,970 --> 00:01:03,380
So it's removed this one.

14
00:01:04,310 --> 00:01:14,540
As well, so as the more we should have A. We do than let's create a new product, and I'm just going

15
00:01:14,540 --> 00:01:17,030
to say product number one.

16
00:01:18,390 --> 00:01:25,470
Product product number one, as far as these values are going to leave it the way it is.

17
00:01:25,830 --> 00:01:27,300
So we're creating the product.

18
00:01:28,280 --> 00:01:31,280
And if I get all the product, yep, that's the one.

19
00:01:31,730 --> 00:01:37,730
And now I want to take a fresh idea and then navigate to creative you.

20
00:01:39,010 --> 00:01:42,310
You pass it in, let's send that one.

21
00:01:42,760 --> 00:01:47,140
And now let's log in as Susan or Peter or whatever users you have.

22
00:01:47,890 --> 00:01:52,750
So my guess, I'm going to go with Susan and same thing creator of you.

23
00:01:52,750 --> 00:01:55,060
But in this case, let's go with one.

24
00:01:55,960 --> 00:02:00,970
So let's change some things around so we can get actually an average rating.

25
00:02:01,150 --> 00:02:01,990
Let's send it.

26
00:02:02,470 --> 00:02:09,160
And now, if we take a look at all the reviews, we should have two for the same product, obviously,

27
00:02:09,610 --> 00:02:12,100
and not a one as five on the second one as a want.

28
00:02:12,110 --> 00:02:17,740
And with this in place now can start finally setting up the aggregation pipeline.

