This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
from typing import Any, Optional
|
||||
from typing import Any
|
||||
|
||||
import orjson
|
||||
from graphql import GraphQLResolveInfo
|
||||
@@ -400,7 +400,7 @@ def apply_filters(q: Select, filters: dict[str, Any]) -> Select:
|
||||
|
||||
|
||||
@query.field("get_shout")
|
||||
async def get_shout(_: None, info: GraphQLResolveInfo, slug: str = "", shout_id: int = 0) -> Optional[Shout]:
|
||||
async def get_shout(_: None, info: GraphQLResolveInfo, slug: str = "", shout_id: int = 0) -> Shout | None:
|
||||
"""
|
||||
Получение публикации по slug или id.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user