From ca31dedca84aae3d215c26c6ce5ffcec90142d97 Mon Sep 17 00:00:00 2001 From: Chi Vinh Le Date: Thu, 24 Aug 2017 20:07:45 +0700 Subject: [PATCH] Make comments query optional --- graph/typeDefs.graphql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/graph/typeDefs.graphql b/graph/typeDefs.graphql index 72a1ab6fd..bf51f47a9 100644 --- a/graph/typeDefs.graphql +++ b/graph/typeDefs.graphql @@ -334,7 +334,7 @@ type Comment { user: User # the replies that were made to the comment. - replies(query: RepliesQuery!): CommentConnection! + replies(query: RepliesQuery = {}): CommentConnection! # The count of replies on a comment. replyCount: Int @@ -591,7 +591,7 @@ type Asset { # The comments that are attached to the asset. When `deep` is true, the # comments returned will be at all depths. - comments(query: CommentsQuery!, deep: Boolean = false): CommentConnection! + comments(query: CommentsQuery = {}, deep: Boolean = false): CommentConnection! # A Comment from the Asset by comment's ID comment(id: ID!): Comment