From be7b79e181de79c45fb549c7cbf4a15231e7de6c Mon Sep 17 00:00:00 2001 From: bniwredyc Date: Sat, 3 Jun 2023 11:53:30 +0200 Subject: [PATCH] added layout and media fields to ShoutInput --- resolvers/create/editor.py | 1 + schema.graphql | 2 ++ 2 files changed, 3 insertions(+) diff --git a/resolvers/create/editor.py b/resolvers/create/editor.py index 50f5e60d..68bbe190 100644 --- a/resolvers/create/editor.py +++ b/resolvers/create/editor.py @@ -24,6 +24,7 @@ async def create_shout(_, info, inp): "title": inp.get("title"), "subtitle": inp.get('subtitle'), "body": inp.get("body", ''), + "layout": inp.get("layout"), "authors": inp.get("authors", []), "slug": inp.get("slug"), "mainTopic": inp.get("mainTopic"), diff --git a/schema.graphql b/schema.graphql index 9d762ad9..d130b558 100644 --- a/schema.graphql +++ b/schema.graphql @@ -98,6 +98,8 @@ input ShoutInput { slug: String title: String body: String + layout: String + media: String authors: [String] topics: [TopicInput] community: Int