Skip to content

Commit

Permalink
get_joined docs fixed from to
Browse files Browse the repository at this point in the history
  • Loading branch information
igorbenav committed May 4, 2024
1 parent aab42a2 commit ac5bb4b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/advanced/joins.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ For simpler join requirements, FastCRUD allows specifying join parameters direct
# Fetch tasks with user details, specifying a left join
tasks_with_users = await task_crud.get_joined(
db=db,
model=User,
join_model=User,
join_on=Task.user_id == User.id,
join_type="left"
)
Expand Down Expand Up @@ -94,7 +94,7 @@ And join them with `FastCRUD`:
```python
user_tier = await user_crud.get_joined(
db=db,
model=Tier,
join_model=Tier,
join_on=User.tier_id == Tier.id,
join_type="left",
join_prefix="tier_",,
Expand All @@ -118,7 +118,7 @@ If you want the joined data in a nested dictionary instead, you may just pass `n
```python
user_tier = await user_crud.get_joined(
db=db,
model=Tier,
join_model=Tier,
join_on=User.tier_id == Tier.id,
join_type="left",
join_prefix="tier_",
Expand Down

0 comments on commit ac5bb4b

Please sign in to comment.