docs: Update eager-and-lazy-relations.md (#10791)

This commit is contained in:
Kunal Garg 2025-01-05 15:58:00 -05:00 committed by GitHub
parent 9b76ae8fbf
commit 4d319020ff
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -142,6 +142,6 @@ const categories = await question.categories
```
Note: if you came from other languages (Java, PHP, etc.) and are used to use lazy relations everywhere - be careful.
Those languages aren't asynchronous and lazy loading is achieved different way, that's why you don't work with promises there.
Those languages aren't asynchronous and lazy loading is achieved in a different way, that's why you don't work with promises there.
In JavaScript and Node.JS you have to use promises if you want to have lazy-loaded relations.
This is non-standard technique and considered experimental in TypeORM.