"""
GraphQL Schema.
"""
import strawberry
from typing import List, Optional

from apps.services.worktable.graphql.queries import WorktableQuery
from apps.services.worktable.graphql.mutations import WorktableMutation
from apps.services.worktable.graphql.types import (
    TableDefinitionType,
    TableRecordType,
    TableColumnType,
)


@strawberry.type
class Query(WorktableQuery):
    @strawberry.field
    def hello(self) -> str:
        return "Hello from Nexa Platform GraphQL!"
    
    @strawberry.field
    def version(self) -> str:
        return "0.1.0"


@strawberry.type
class Mutation(WorktableMutation):
    @strawberry.mutation
    def placeholder(self) -> str:
        return "Placeholder mutation"


schema = strawberry.Schema(query=Query, mutation=Mutation)
