Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Add answered filter and isAnswered field
  • Loading branch information
mgriffin committed Sep 8, 2023
commit 18ce9bdf4c25c6712d01ac1c5b51f4e8b2fe7d24
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ This API is available for authenticated users, {% data variables.product.prodnam
### Repository.discussions

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

_Signature:_

Expand All @@ -25,6 +26,7 @@ discussions(
first: Int,
last: Int,
categoryId: ID = null,
answered: Boolean = null,
orderBy: DiscussionOrder = {field: UPDATED_AT, direction: DESC}
) : Discussion
```
Expand Down Expand Up @@ -157,6 +159,11 @@ type Discussion implements Comment & Deletable & Lockable & Node & Reactable & R
"""
activeLockReason: LockReason

"""
Check if this discussion has been answered
"""
isAnswered: Boolean!

"""
The comment chosen as this discussion's answer, if any.
"""
Expand Down