5.6 · Lesson (Optional)

DTO-based projections

While you can use DTO-based Full definition for projection (opens in a new tab)An in-memory copy of part of your database that graph algorithms run against. You choose which nodes and relationships it holds. similarly to interface-based projections with a subset of existing domain class Full definition for property (opens in a new tab)A named value stored on a node or a relationship., DTO-based projections really shine when you want to add additional properties to an entity.

What if you wanted to calculate cast size and add it to the display data as a fun fact for users to know? In this lesson, you will create a DTO projection that contains the title, released, poster, and castSize properties to find out!