Skip to content

Commit 1678a79

Browse files
Update limit-and-offset.md
1 parent 893f8bd commit 1678a79

File tree

1 file changed

+1
-67
lines changed

1 file changed

+1
-67
lines changed

docs/tutorial/fastapi/limit-and-offset.md

Lines changed: 1 addition & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -22,75 +22,9 @@ By default, we will return the first results from the database, so `offset` will
2222

2323
And by default, we will return a maximum of `100` heroes, so `limit` will have a default value of `100`.
2424

25-
//// tab | Python 3.10+
25+
{* ./docs_src/tutorial/fastapi/limit_and_offset/tutorial001_py310.py ln[52:56] hl[1,7,9] *}
2626

27-
```Python hl_lines="1 7 9"
28-
{!./docs_src/tutorial/fastapi/limit_and_offset/tutorial001_py310.py[ln:1-2]!}
29-
30-
# Code here omitted 👈
31-
32-
{!./docs_src/tutorial/fastapi/limit_and_offset/tutorial001_py310.py[ln:52-56]!}
33-
34-
# Code below omitted 👇
35-
```
36-
37-
////
38-
39-
//// tab | Python 3.9+
40-
41-
```Python hl_lines="3 9 11"
42-
{!./docs_src/tutorial/fastapi/limit_and_offset/tutorial001_py39.py[ln:1-4]!}
43-
44-
# Code here omitted 👈
45-
46-
{!./docs_src/tutorial/fastapi/limit_and_offset/tutorial001_py39.py[ln:54-58]!}
47-
48-
# Code below omitted 👇
49-
```
50-
51-
////
52-
53-
//// tab | Python 3.7+
54-
55-
```Python hl_lines="3 9 11"
56-
{!./docs_src/tutorial/fastapi/limit_and_offset/tutorial001.py[ln:1-4]!}
57-
58-
# Code here omitted 👈
59-
60-
{!./docs_src/tutorial/fastapi/limit_and_offset/tutorial001.py[ln:54-58]!}
61-
62-
# Code below omitted 👇
63-
```
64-
65-
////
66-
67-
/// details | 👀 Full file preview
68-
69-
//// tab | Python 3.10+
70-
71-
```Python
72-
{!./docs_src/tutorial/fastapi/limit_and_offset/tutorial001_py310.py!}
73-
```
74-
75-
////
76-
77-
//// tab | Python 3.9+
78-
79-
```Python
8027
{!./docs_src/tutorial/fastapi/limit_and_offset/tutorial001_py39.py!}
81-
```
82-
83-
////
84-
85-
//// tab | Python 3.7+
86-
87-
```Python
88-
{!./docs_src/tutorial/fastapi/limit_and_offset/tutorial001.py!}
89-
```
90-
91-
////
92-
93-
///
9428

9529
We want to allow clients to set different `offset` and `limit` values.
9630

0 commit comments

Comments
 (0)