GraphQL: Filter by access_levels in projects members
What does this MR do and why?
Filter by access_levels
in projects members GraphQL API
Closes #541386 (closed)
References
Screenshots or screen recordings
Before | After |
---|---|
How to set up and validate locally
- Create a project named
test-project
inside grouptest-group
- Visit
http://localhost:3000/-/graphql-explorer
Query:
query projectOwners {
project(fullPath: "test-group/test-project") {
projectMembers(accessLevels: OWNER) {
nodes {
user {
username
}
}
}
}
}
Response:
{
"data": {
"project": {
"projectMembers": {
"nodes": [
{
"user": {
"username": "root"
}
}
]
}
}
},
"correlationId": "random"
}
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Edited by Shubham Kumar