TypeScript error when specifying `relationName` in a one-to-one relation
Hi there! I have the following relations:
The example code shows a case where the
For some reason, the
Please let me know if I'm doing something wrong here.
The example code shows a case where the
referralCode table has 2 fields that reference the user table, so specifying relationName is required to disambiguate. However, the config object taken by the one function requires the fields and references properties, which doesn't make sense for the user table which does not have foreign key fields.For some reason, the
many function does not have this problem, and specifying just relationName is fine.Please let me know if I'm doing something wrong here.