Add answered filter and isAnswered field
This commit is contained in:
@@ -15,6 +15,7 @@ This API is available for authenticated users, {% data variables.product.prodnam
|
|||||||
### Repository.discussions
|
### Repository.discussions
|
||||||
|
|
||||||
List the discussions within a repository. If `categoryId` is specified, only results within that category will be returned.
|
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:_
|
_Signature:_
|
||||||
|
|
||||||
@@ -25,6 +26,7 @@ discussions(
|
|||||||
first: Int,
|
first: Int,
|
||||||
last: Int,
|
last: Int,
|
||||||
categoryId: ID = null,
|
categoryId: ID = null,
|
||||||
|
answered: Boolean = null,
|
||||||
orderBy: DiscussionOrder = {field: UPDATED_AT, direction: DESC}
|
orderBy: DiscussionOrder = {field: UPDATED_AT, direction: DESC}
|
||||||
) : Discussion
|
) : Discussion
|
||||||
```
|
```
|
||||||
@@ -157,6 +159,11 @@ type Discussion implements Comment & Deletable & Lockable & Node & Reactable & R
|
|||||||
"""
|
"""
|
||||||
activeLockReason: LockReason
|
activeLockReason: LockReason
|
||||||
|
|
||||||
|
"""
|
||||||
|
Check if this discussion has been answered
|
||||||
|
"""
|
||||||
|
isAnswered: Boolean!
|
||||||
|
|
||||||
"""
|
"""
|
||||||
The comment chosen as this discussion's answer, if any.
|
The comment chosen as this discussion's answer, if any.
|
||||||
"""
|
"""
|
||||||
|
|||||||
Reference in New Issue
Block a user