This commit is contained in:
2021-11-27 09:15:02 +03:00
parent b489760617
commit aecdcb09e6
3 changed files with 11 additions and 1 deletions

View File

@@ -5,6 +5,14 @@ from resolvers.zine import ShoutSubscriptions
from auth.authenticate import login_required
import asyncio
@query.field("topicsAll")
async def topics_ball(_, info):
topics = []
with local_session() as session:
topics = session.query(Topic)
return topics
@query.field("topicsBySlugs")
async def topics_by_slugs(_, info, slugs):
topics = []