You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now let's imagine we have another table called `Coffee` that has a foreign key to `Flavor`.
126
126
@@ -157,7 +157,7 @@ As we know, in SQL, we can search for data using different methods, ex. `WHERE`,
157
157
158
158
In Ormdantic, we can search for data using the `database.find_one` or `database.find_many` methods.
159
159
160
-
*[`Find_one`](https://github.com/yezz123/ormdantic/blob/400ecfde754fc6613923779a6a545a0f00282752/ormdantic/generator/_crud.py#L35) used to find a Model instance by Primary Key, its could also find with `depth` parameter.
160
+
*`Find_one` used to find a Model instance by Primary Key, its could also find with `depth` parameter.
161
161
162
162
```python
163
163
# Find one
@@ -169,7 +169,7 @@ In Ormdantic, we can search for data using the `database.find_one` or `database.
169
169
print(find_coffee.flavor.name)
170
170
```
171
171
172
-
*[`Find_many`](https://github.com/yezz123/ormdantic/blob/400ecfde754fc6613923779a6a545a0f00282752/ormdantic/generator/_crud.py#L39) used to find Model instances by some condition ex. `where`, `order_by`, `order`, `limit`, `offset`, `depth`.
172
+
*`Find_many` used to find Model instances by some condition ex. `where`, `order_by`, `order`, `limit`, `offset`, `depth`.
173
173
174
174
```python
175
175
# Find many
@@ -181,7 +181,7 @@ In Ormdantic, we can search for data using the `database.find_one` or `database.
0 commit comments