mirror of
https://github.com/wassname/talk.git
synced 2026-07-23 13:10:20 +08:00
Query by tags
This commit is contained in:
+13
-7
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user