MCPcopy
hub / github.com/tortoise/tortoise-orm / get_users

Function get_users

examples/fastapi/routers.py:9–10  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7
8@router.get("/users", response_model=list[User_Pydantic])
9async def get_users():
10 return await User_Pydantic.from_queryset(Users.all())
11
12
13@router.post("/users", response_model=User_Pydantic)

Callers

nothing calls this directly

Calls 2

from_querysetMethod · 0.45
allMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…