You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
results in a return type that includes the patient object on it? And vice-versa, if I don't include the patient model, can I get a return type where the patient object is not defined? I have the associations defined with decorators on the appointment class but it seems to always assume that patient will be present on the appointment object.
The text was updated successfully, but these errors were encountered:
For example, I have an
appointments
model and apatient
model. Theappointment
model has apatientId
. Is there a way to define the types so that:appointment.findByPk(appointmentId, {include: [{model: db.patient}]});
results in a return type that includes the patient object on it? And vice-versa, if I don't include the
patient
model, can I get a return type where the patient object is not defined? I have the associations defined with decorators on theappointment
class but it seems to always assume thatpatient
will be present on theappointment
object.The text was updated successfully, but these errors were encountered: