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

This commit is contained in:
Shahed Nasser authored and GitHub committed 2024-08-15 16:30:00 +03:00
1 parent 3bdfb66238
commit 198d7c9927
2 files changed
+27 -2

No files matched your search

@@ -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),
})
```