docs: add a section in the book on how to retrieve a relationship (#8594)

This commit is contained in:
Shahed Nasser
2024-08-15 16:30:00 +03:00
committed by GitHub
parent 3bdfb66238
commit 198d7c9927
2 changed files with 27 additions and 2 deletions
@@ -125,7 +125,7 @@ const Order = model.define("order", {
const Product = model.define("product", {
id: model.id().primaryKey(),
order: model.manyToMany(() => Order),
orders: model.manyToMany(() => Order),
})
```