Yurii Karabas
Yurii Karabas
Yup, please follow `sqlachemy` example. You can add as much info as you want. Thanks for your help 🙏
Hi @xalien10, I'm sorry for not getting back to you sooner. Here is code examples that might help you: ```py from fastapi import FastAPI from tortoise import Tortoise from tortoise.contrib.fastapi...
@xalien10 Sure ```py from fastapi_pagination.ext.tortoise import paginate @app.get("/users") async def route() -> Page[UserList]: return await paginate(User.filter(name="Joe"), prefetch_related=True) ```
> do we need to explicitly write the reverse relation like user_roles in User model? Yup, you need to do it
@xalien10 Any updates? Can I close this issue?
Is there anything I can help you with?
Hi @xalien10, Yup, I have a plan to add `tortoise-orm` integration.
I hope to add initial integration in 2-4 weeks.
Hi @YarrikV, I guess you can try to use `set_page` function, it can be used with `with` statement to set page class for a specific context. Here is an example:...
Hi @sombathoudom, Could you please show what kind of error you receive?