markdown-migrate
This commit is contained in:
parent
7471764e3b
commit
bb59ff33cf
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user