type Patient { dateOfBirth: String id: ID! medicalRecords: [PatientRecord] name: String } type PatientRecord { admissionDate: String diagnosis: String extendPatientRecord: PatientRecord patient: Patient recordId: ID! treatmentPlan: String } type Query { patient: Patient patientRecord: PatientRecord patientRecords: [PatientRecord] patients: [Patient] }