10 lines
323 B
Python
10 lines
323 B
Python
import strawberry
|
|
import strawberry_django as sd
|
|
from typing import List, Optional
|
|
from core.graphql.types.report import ReportType
|
|
from core.graphql.filters.report import ReportFilter
|
|
|
|
@strawberry.type
|
|
class Query:
|
|
report: Optional[ReportType] = sd.node()
|
|
reports: List[ReportType] = sd.field(filters=ReportFilter) |