10 lines
314 B
Python
10 lines
314 B
Python
import strawberry
|
|
import strawberry_django as sd
|
|
from typing import List, Optional
|
|
from core.graphql.types.labor import LaborType
|
|
from core.graphql.filters.labor import LaborFilter
|
|
|
|
@strawberry.type
|
|
class Query:
|
|
labor: Optional[LaborType] = sd.node()
|
|
labors: List[LaborType] = sd.field(filters=LaborFilter) |