We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
init-models.ts -> Ocorrencias.belongsTo(Condomino, { as: "autor_condomino", foreignKey: "autor"}); ocorrencias.ts -> autor_condomino!: Condomino;
Everything works perfectly
init-models.ts -> Ocorrencias.belongsTo(Condomino, { foreignKey: "autor"}); ocorrencias.ts -> autor_condomino!: Condomino; const test_ocorrencia = await Ocorrencias.findOne({ where: { id_condominio: req.condominioID, id: 3, }, include: { model: Condomino, }, nest: true, }); logger.info(test_ocorrencia?.autor_condomino.nome_ocupante); -> returns undefined or just errors without ?.
Gists
The text was updated successfully, but these errors were encountered:
Is there any progress on this issue?
Sorry, something went wrong.
No branches or pull requests
Without --noAlias
Everything works perfectly
With --noAlias
Error I get if I try to use Condomino directly
Gists
The text was updated successfully, but these errors were encountered: