What does the ORM's annotate() method do?
- A Adds a comment to the query
- B Adds a calculated value to each row of the QuerySet
- C Filters rows by a condition
- D Sorts the results
Answer
Adds a calculated value to each row of the QuerySet
annotate adds a per-object computed value such as a related count. aggregate returns a single summary value over the whole QuerySet instead.





