DTO-based projections
While you can use DTO-based iFull 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 iFull 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!
Join GraphAcademy to keep learning
Create your account to unlock 80+ hours of hands-on Neo4j courses, track your progress, and earn a certificate when you complete the course.
Sign in or register