Kay Khan
09/02/2021, 8:49 AMRyan
09/02/2021, 8:51 AMKay Khan
09/02/2021, 8:55 AMPersonDB type which is a type i have created that matches my person table.
2. I have a custom type called Person which is going to contain some aggregated data for a person which pulls in data from a number of tables. This is what i will generally be querying.
3. As you can see i need to now define the ContactDetailsDB type which matches the contactdetails table.
const typeDefs = gql`
type PersonDB {
id: String!
name: String!
slug: String!
synchronizationId: Int
about: String
profileImageId: String
bannerId: String
createdAt: String
updatedAt: String
deletedAt: String
}
type Person {
base: PersonDB
contactDetails: [ContactDetailDB]
}
`;Kay Khan
09/02/2021, 8:55 AMRyan
09/02/2021, 10:10 AM