Hyun S. Moon
Hyun S. Moon
- [V ] Alteration (enhancement/optimization) of existing feature(s) ## Description I am developing a product with strawberry_graphql and strawberry_graphql_django. While developing, I need a pagination function, so I am using...
a custom resolver with permission_classes doesn't accept @sync_to_async decorator Here is a code sample. ``` @strawberry.type class Query: test: typing.Optional[User] = strawberry.field(resolver=test, permission_classes=[IsAuthenticated]) class IsAuthenticated(BasePermission): message = str(UnauthorizedError) @sync_to_async #...
Hi. I'm using strawberry graphql library for my project. I'm using async view and I tried to disable graphql ide by giving a parameter like following. ` from strawberry.django.views import...
Replace localtime() function with datetime.now() when USE_TZ=False
## Description Fix a bug "a custom resolver with permission_classes doesn't accept @sync_to_async decorator" The root cause was inspect.iscoroutinefunction() function returns True only for functions defined with "async def". Now...