Uprava vycitani a nastavovani copilota

This commit is contained in:
Michal Kváček
2023-07-18 10:20:36 +02:00
parent 185681cdac
commit 81d4c73a1f
3 changed files with 23 additions and 18 deletions
+2 -2
View File
@@ -13,5 +13,5 @@ class CopilotType:
@strawberry.type
class CopilotQueries:
@strawberry.field
async def pilots(root, info) -> List[CopilotType]:
return (await info.context['db'].scalars(select(Copilot))).all()
async def copilots(root, info) -> List[CopilotType]:
return (await info.context.db.scalars(select(Copilot))).all()