From 9d26d248d7ff603c1fad9406fa71c1a97b48bf04 Mon Sep 17 00:00:00 2001 From: Trivernis Date: Sun, 22 Sep 2019 20:17:38 +0200 Subject: [PATCH] Fixed Graphql Schema - removed Query types used as Input types --- src/public/graphql/schema.graphql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/public/graphql/schema.graphql b/src/public/graphql/schema.graphql index e4705d6..ff60fd3 100644 --- a/src/public/graphql/schema.graphql +++ b/src/public/graphql/schema.graphql @@ -26,7 +26,7 @@ type Mutation { report(postId: ID!): Boolean "send a request" - sendRequest(request: Request!): Boolean + sendRequest(reciever: ID!, type: RequestType): Boolean "lets you accept a request for a given request id" acceptRequest(requestId: ID!): Boolean @@ -38,7 +38,7 @@ type Mutation { sendMessage(chatId: ID!, content: String!): Boolean "create the post" - createPost(post: Post!): Boolean + createPost(text: String, picture: String, tags: [String]): Boolean "delete the post for a given post id" deletePost(postId: ID!): Boolean