markdown-migrate

This commit is contained in:
tonyrewin 2022-11-12 15:12:10 +03:00
parent 7471764e3b
commit bb59ff33cf
2 changed files with 4 additions and 1 deletions

View File

@ -6,6 +6,6 @@ from migration.extract import extract_md
@login_required @login_required
@query.field("markdownBody") @query.field("markdownBody")
def markdown_body(_, info, body): def markdown_body(_, info, body: str):
body = extract_md(body) body = extract_md(body)
return body return body

View File

@ -268,6 +268,9 @@ type Query {
# search # search
searchQuery(q: String, offset: Int!, limit: Int!): [Shout] searchQuery(q: String, offset: Int!, limit: Int!): [Shout]
# migrate
markdownBody(body: String!): String
} }
############################################ Subscription ############################################ Subscription