package Ġro cks . mar cel g ross . graphql . relationship . api Ċ Ċ import Ġcom . co xa ut ode v . graphql . tools . GraphQL Resolver Ċ import Ġorg . springframework . stereotype . Component Ċ import Ġro cks . mar cel g ross . graphql . person . repository . Person Repository Ċ import Ġro cks . mar cel g ross . graphql . relationship . repository . Relationship Entity Ċ Ċ @ Component Ċ class ĠRelationship Resolver ( private Ġval Ġperson Repository : ĠPerson Repository ) Ġ: ĠGraphQL Resolver < Relationship Entity > Ġ{ ĊĠĠĠ Ġfun Ġget From ( relationship : ĠRelationship Entity ) Ġ= Ġperson Repository . findOne ( relationship . from . id ) ĊĠĠĠ Ġfun Ġget To ( relationship : ĠRelationship Entity ) Ġ= Ġperson Repository . findOne ( relationship . to . id ) Ċ }