added layout and media fields to ShoutInput

This commit is contained in:
bniwredyc 2023-06-03 11:53:30 +02:00
parent 0697aff502
commit be7b79e181
2 changed files with 3 additions and 0 deletions

View File

@ -24,6 +24,7 @@ async def create_shout(_, info, inp):
"title": inp.get("title"), "title": inp.get("title"),
"subtitle": inp.get('subtitle'), "subtitle": inp.get('subtitle'),
"body": inp.get("body", ''), "body": inp.get("body", ''),
"layout": inp.get("layout"),
"authors": inp.get("authors", []), "authors": inp.get("authors", []),
"slug": inp.get("slug"), "slug": inp.get("slug"),
"mainTopic": inp.get("mainTopic"), "mainTopic": inp.get("mainTopic"),

View File

@ -98,6 +98,8 @@ input ShoutInput {
slug: String slug: String
title: String title: String
body: String body: String
layout: String
media: String
authors: [String] authors: [String]
topics: [TopicInput] topics: [TopicInput]
community: Int community: Int