joshjoe
03/28/2018, 9:29 PMChristian Genco
03/28/2018, 9:33 PMjoshjoe
03/28/2018, 9:38 PMChristian Genco
03/28/2018, 9:40 PMChristian Genco
03/28/2018, 9:41 PMjoshjoe
03/28/2018, 9:41 PMChristian Genco
03/28/2018, 9:41 PMChristian Genco
03/28/2018, 9:43 PMtype Person @model{donations: [Donation!]!} @relation(name: "DonationPerson")
and type Donation @model{person: Person! @relation(name: "DonationPerson")}
joshjoe
03/28/2018, 9:43 PMjoshjoe
03/28/2018, 9:43 PMChristian Genco
03/28/2018, 9:45 PMChristian Genco
03/28/2018, 9:46 PMGET /your/rest/api/donations/ID/person
or whatever to resolve itjoshjoe
03/28/2018, 9:47 PMChristian Genco
03/28/2018, 9:50 PMChristian Genco
03/28/2018, 9:51 PMPerson
resolver correctly, you should be able to query {Donation(id: "123"){person: {email}}
and it just worksjoshjoe
03/28/2018, 9:53 PMjoshjoe
03/28/2018, 10:07 PMjoshjoe
03/28/2018, 10:07 PMChristian Genco
03/28/2018, 11:31 PMFitch
03/29/2018, 12:43 AMFitch
03/29/2018, 12:43 AMjoshjoe
03/29/2018, 12:52 AM