Add UserStarredProjectsResolver sort argument
What does this MR do and why?
Add UserStarredProjectsResolver sort argument
Related to issue: #450693
How to set up and validate locally
- Star a few projects
- Visit http://127.0.0.1:3000/-/graphql-explorer
- Test the query below. Try using
name_asc
,name_desc
,id_asc
, ... as the sort argument and the return response projects should be sorted accordingly:
query GetUserStarredProjects($username: String, $sort: String) {
user(username: $username) {
id
username
name
starredProjects(sort: $sort) {
nodes {
id
name
description
starCount
createdAt
updatedAt
}
pageInfo {
hasNextPage
hasPreviousPage
startCursor
endCursor
}
}
}
}
Edited by Justin Zeng