Skip to content

Commit 6fd5738

Browse files
authored
Update README.md
1 parent 3fb6483 commit 6fd5738

File tree

1 file changed

+14
-12
lines changed

1 file changed

+14
-12
lines changed

README.md

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -405,18 +405,20 @@ We have our Movie Class inheriting from the serializer class on the first line,
405405
406406
You should see that only the ```id``` and ```name``` attribute is being returned from the database.
407407
```json
408-
{
409-
id: 1,
410-
name: "A Quiet Place"
411-
},
412-
{
413-
id: 2
414-
name: "The Avengers
415-
},
416-
{
417-
id: 3
418-
name: "Midsommar"
419-
}
408+
{ movies:
409+
{
410+
id: 1,
411+
name: "A Quiet Place"
412+
},
413+
{
414+
id: 2
415+
name: "The Avengers"
416+
},
417+
{
418+
id: 3
419+
name: "Midsommar"
420+
}
421+
}
420422
```
421423
422424
You can add any attribute to your liking to the serializer file for your next big project. But that's the end of the serializer section!

0 commit comments

Comments
 (0)