📝 Update docs, use offset in example with limit and where (#273)

Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
This commit is contained in:
Jon Michaelchuck
2023-10-23 09:55:53 -07:00
committed by GitHub
parent a1caaa08d7
commit 403d44ea78
3 changed files with 16 additions and 20 deletions

View File

@ -43,7 +43,7 @@ def create_heroes():
def select_heroes():
with Session(engine) as session:
statement = select(Hero).where(Hero.age > 32).limit(3)
statement = select(Hero).where(Hero.age > 32).offset(1).limit(2)
results = session.exec(statement)
heroes = results.all()
print(heroes)