Query by tags

This commit is contained in:
Chi Vinh Le
2017-07-12 20:55:54 +07:00
parent ef3c82fee1
commit 23cc3548d4
3 changed files with 57 additions and 20 deletions
+13 -7
View File
@@ -243,12 +243,12 @@ input CommentsQuery {
# Skip results from the last created_at timestamp.
cursor: Date
# Filter by a specific tag name.
tag: [String]
# Sort the results by created_at.
sort: SORT_ORDER = REVERSE_CHRONOLOGICAL
# Filter by a specific tag name.
tags: [String!]
# Exclude comments ignored by the requesting user
excludeIgnored: Boolean
}
@@ -278,7 +278,7 @@ input CommentCountQuery {
author_id: ID
# Filter by a specific tag name.
tag: [String]
tags: [String!]
}
type EditInfo {
@@ -570,13 +570,19 @@ type Asset {
recentComments: [Comment!]
# The top level comments that are attached to the asset.
comments(sort: SORT_ORDER = REVERSE_CHRONOLOGICAL, limit: Int = 10, excludeIgnored: Boolean): CommentConnection!
comments(
sort: SORT_ORDER = REVERSE_CHRONOLOGICAL,
limit: Int = 10,
deep: Boolean,
excludeIgnored: Boolean,
tags: [String!]
): CommentConnection!
# The count of top level comments on the asset.
commentCount(excludeIgnored: Boolean): Int
commentCount(excludeIgnored: Boolean, tags: [String!]): Int
# The total count of all comments made on the asset.
totalCommentCount(excludeIgnored: Boolean): Int
totalCommentCount(excludeIgnored: Boolean, tags: [String!]): Int
# The settings (rectified with the global settings) that should be applied to
# this asset.