diff --git a/resolvers/__init__.py b/resolvers/__init__.py index 5837f767..df652076 100644 --- a/resolvers/__init__.py +++ b/resolvers/__init__.py @@ -8,8 +8,8 @@ from resolvers.auth import ( get_current_user, ) -from resolvers.create.collab import load_drafts, create_draft, update_draft, delete_draft,\ - accept_coauthor, invite_coauthor +from resolvers.create.drafts import load_drafts, create_draft, update_draft, delete_draft,\ + accept_coauthor, invite_coauthor, draft_to_shout from resolvers.create.migrate import markdown_body from resolvers.create.editor import create_shout, delete_shout, update_shout @@ -87,19 +87,18 @@ __all__ = [ # zine.following "follow", "unfollow", - # create.editor + # create "create_shout", "update_shout", "delete_shout", - # create.migrate "markdown_body", - # create.collab "load_drafts", "create_draft", "update_draft", "delete_draft", "invite_coauthor", "accept_coauthor", + "draft_to_shout", # zine.topics "topics_all", "topics_by_community", diff --git a/schema.graphql b/schema.graphql index e4f99856..3598ba57 100644 --- a/schema.graphql +++ b/schema.graphql @@ -69,7 +69,6 @@ type Result { members: [ChatMember] shout: Shout shouts: [Shout] - drafts: [DraftCollab] author: Author authors: [Author] reaction: Reaction @@ -78,6 +77,8 @@ type Result { topics: [Topic] community: Community communities: [Community] + draft: DraftCollab + drafts: [DraftCollab] } enum ReactionStatus { @@ -207,6 +208,7 @@ type Mutation { deleteDraft(draft: Int!): Result! inviteAccept(draft: Int!): Result! inviteAuthor(draft: Int!, author: Int!): Result! + draftToShout(draft: Int!): Result! # following follow(what: FollowingEntity!, slug: String!): Result!