Currently we allow to return list in load functions for dataloaders, as shown in our example:
from typing import List
async def load_users(keys: List[int]) -> List[User]:
return [User(id=key) for key in keys]
we could allow returning dictionaries too:
from typing import List
async def load_users(keys: List[int]) -> List[User]:
return {id: User(id=key) for key in keys}
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too