From 9c6028d26446485375bfb3633edc01bb8776bc10 Mon Sep 17 00:00:00 2001 From: Ilya Y <75578537+ilya-bkv@users.noreply.github.com> Date: Mon, 21 Aug 2023 21:51:06 +0300 Subject: [PATCH] =?UTF-8?q?=D0=90dd=20fields=20to=20updateShout=20(#76)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - lead - description --- resolvers/create/editor.py | 2 ++ schema.graphql | 2 ++ 2 files changed, 4 insertions(+) diff --git a/resolvers/create/editor.py b/resolvers/create/editor.py index 68bbe190..c81ff404 100644 --- a/resolvers/create/editor.py +++ b/resolvers/create/editor.py @@ -23,6 +23,8 @@ async def create_shout(_, info, inp): new_shout = Shout.create(**{ "title": inp.get("title"), "subtitle": inp.get('subtitle'), + "lead": inp.get('lead'), + "description": inp.get('description'), "body": inp.get("body", ''), "layout": inp.get("layout"), "authors": inp.get("authors", []), diff --git a/schema.graphql b/schema.graphql index 4d6334b2..70dfa8e7 100644 --- a/schema.graphql +++ b/schema.graphql @@ -98,6 +98,8 @@ input ShoutInput { slug: String title: String body: String + lead: String + description: String layout: String media: String authors: [String]