1
00:00:00,360 --> 00:00:06,240
Nice at this point, we can successfully create new tasks and persist in our cloud database.

2
00:00:06,630 --> 00:00:13,770
So now it's really just about applying the same concepts to the rest of our roots before we set up the

3
00:00:13,770 --> 00:00:16,930
rest of the four controllers in a similar fashion.

4
00:00:17,340 --> 00:00:19,840
There are a few important things that I want to cover first.

5
00:00:20,340 --> 00:00:27,690
For starters, I just want to showcase that since we set up our schema, only the properties we specified

6
00:00:27,690 --> 00:00:34,020
in our schema will be passed on to the database and everything else is going to be ignored.

7
00:00:34,590 --> 00:00:35,320
Don't believe me.

8
00:00:35,700 --> 00:00:37,220
Let's try it out first.

9
00:00:37,680 --> 00:00:39,780
I just want to showcase that in our schema.

10
00:00:40,180 --> 00:00:44,230
We specified two properties name and completed.

11
00:00:44,610 --> 00:00:52,140
So now if I go back to the postman and I'll just set up testing schema, that's going to be my name

12
00:00:52,660 --> 00:00:54,170
testing schema.

13
00:00:54,510 --> 00:00:56,280
I'll leave completed as false.

14
00:00:56,580 --> 00:01:04,190
But if I try to add some properties that are not on my schema effectively, there will be just ignored.

15
00:01:04,500 --> 00:01:09,400
So I guess I'm just gonna say random is equal to random.

16
00:01:09,600 --> 00:01:16,380
Now I do still need to use the proper index and then I'll just add the amount and I'll set it equal

17
00:01:16,380 --> 00:01:16,940
to five.

18
00:01:17,370 --> 00:01:22,100
Now you can add 10000 properties and again, the result is going to be exactly the same.

19
00:01:22,110 --> 00:01:26,130
So I'll just leave these two and I'll try to send it.

20
00:01:26,400 --> 00:01:29,460
So here I send and then check it out.

21
00:01:30,000 --> 00:01:34,400
Now what I get back is only the name and only the completed.

22
00:01:34,620 --> 00:01:41,700
Again, let me repeat, only the properties that you set in your schema will be passed on to the database.

23
00:01:42,110 --> 00:01:48,390
Everything else will be ignored, which of course is really, really cool, because that way we can

24
00:01:48,390 --> 00:01:54,270
avoid this mess where if you remember back in the store when I was setting up the product, one has

25
00:01:54,270 --> 00:02:02,040
named the other one has the colors because there is no structure for these documents when we use schema.

26
00:02:02,310 --> 00:02:04,050
There is a structure.

27
00:02:04,410 --> 00:02:10,590
So whatever we set up in the schema is going to be passed on to this database.

28
00:02:10,919 --> 00:02:15,110
And whatever comes as an extra is just going to be ignored.

