Skip to content

Commit f34c4d3

Browse files
authored
Merge pull request github#28366 from github/repo-sync
Repo sync
2 parents bb6a189 + 546cd38 commit f34c4d3

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

content/graphql/guides/using-the-graphql-api-for-discussions.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ This API is available for authenticated users, {% data variables.product.prodnam
1515
### Repository.discussions
1616

1717
List the discussions within a repository. If `categoryId` is specified, only results within that category will be returned.
18+
If `answered` is not specified, both answered and unanswered discussions will be returned.
1819

1920
_Signature:_
2021

@@ -25,6 +26,7 @@ discussions(
2526
first: Int,
2627
last: Int,
2728
categoryId: ID = null,
29+
answered: Boolean = null,
2830
orderBy: DiscussionOrder = {field: UPDATED_AT, direction: DESC}
2931
) : Discussion
3032
```
@@ -157,6 +159,11 @@ type Discussion implements Comment & Deletable & Lockable & Node & Reactable & R
157159
"""
158160
activeLockReason: LockReason
159161

162+
"""
163+
Check if this discussion has been answered
164+
"""
165+
isAnswered: Boolean!
166+
160167
"""
161168
The comment chosen as this discussion's answer, if any.
162169
"""

0 commit comments

Comments
 (0)