Added gql base #181

This commit is contained in:
2025-10-04 05:44:13 +02:00
parent 685c20e3bf
commit e1ab9cf0db
33 changed files with 500 additions and 30 deletions
View File
+13
View File
@@ -0,0 +1,13 @@
import graphene
from cpl.graphql.schema.query import Query
class HelloQuery(Query):
def __init__(self):
Query.__init__(self)
self.string_field(
"message",
args={"name": graphene.String(default_value="world")},
resolver=lambda *_, name: f"Hello {name}",
)