add active and inactive review request for user query

This commit is contained in:
2022-10-18 22:17:06 -03:00
parent b9d682f86b
commit afb827dae3
6 changed files with 151 additions and 2 deletions

View File

@@ -526,6 +526,49 @@ input ReviewMessageInput {
text: String!
}
type ReviewRequest {
answered: Boolean!
id: ID!
question: Question!
user: User!
}
"""
The connection type for ReviewRequest.
"""
type ReviewRequestConnection {
"""
A list of edges.
"""
edges: [ReviewRequestEdge!]!
"""
A list of nodes.
"""
nodes: [ReviewRequest!]!
"""
Information to aid in pagination.
"""
pageInfo: PageInfo!
totalCount: Int!
}
"""
An edge in a connection.
"""
type ReviewRequestEdge {
"""
A cursor for use in pagination.
"""
cursor: String!
"""
The item at the end of the edge.
"""
node: ReviewRequest
}
type Subject {
axis: Axis!
category: Category!
@@ -619,9 +662,51 @@ type UpdateQuestionPayload {
}
type User {
activeReviewRequests(
"""
Returns the elements in the list that come after the specified cursor.
"""
after: String
"""
Returns the elements in the list that come before the specified cursor.
"""
before: String
"""
Returns the first _n_ elements from the list.
"""
first: Int
"""
Returns the last _n_ elements from the list.
"""
last: Int
): ReviewRequestConnection!
avatarUrl: String
email: String!
id: ID!
inactiveReviewRequests(
"""
Returns the elements in the list that come after the specified cursor.
"""
after: String
"""
Returns the elements in the list that come before the specified cursor.
"""
before: String
"""
Returns the first _n_ elements from the list.
"""
first: Int
"""
Returns the last _n_ elements from the list.
"""
last: Int
): ReviewRequestConnection!
name: String!
roles: [UserRole!]!
}