markdown-migrate
This commit is contained in:
parent
7471764e3b
commit
bb59ff33cf
|
@ -6,6 +6,6 @@ from migration.extract import extract_md
|
|||
|
||||
@login_required
|
||||
@query.field("markdownBody")
|
||||
def markdown_body(_, info, body):
|
||||
def markdown_body(_, info, body: str):
|
||||
body = extract_md(body)
|
||||
return body
|
||||
|
|
|
@ -268,6 +268,9 @@ type Query {
|
|||
|
||||
# search
|
||||
searchQuery(q: String, offset: Int!, limit: Int!): [Shout]
|
||||
|
||||
# migrate
|
||||
markdownBody(body: String!): String
|
||||
}
|
||||
|
||||
############################################ Subscription
|
||||
|
|
Loading…
Reference in New Issue
Block a user