From 474d2091c6d2ad9bdd9c9ce2122207a39c75eee4 Mon Sep 17 00:00:00 2001 From: Untone Date: Sun, 26 Nov 2023 23:49:05 +0300 Subject: [PATCH] noauto-case-fix --- resolvers/schema.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/resolvers/schema.py b/resolvers/schema.py index 6bcd660..efbc873 100644 --- a/resolvers/schema.py +++ b/resolvers/schema.py @@ -8,6 +8,7 @@ from services.auth import login_required from services.db import local_session from strawberry_sqlalchemy_mapper import StrawberrySQLAlchemyMapper import strawberry +from strawberry.schema.config import StrawberryConfig strawberry_sqlalchemy_mapper = StrawberrySQLAlchemyMapper() @@ -133,4 +134,4 @@ class Mutation: return NotificationSeenResult() -schema = strawberry.Schema(query=Query, mutation=Mutation) +schema = strawberry.Schema(query=Query, mutation=Mutation, config=StrawberryConfig(auto_camel_case=False))