Added gql base #181

This commit is contained in:
2025-09-26 21:56:21 +02:00
parent 685c20e3bf
commit e1ab9cf0db
33 changed files with 500 additions and 30 deletions

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}",
)