How to get shared projects in GitLab via graphql?
I’m attempting to query all projects under a certain group, trying to do the equivalent of GET https://gitlab.com/api/v4/groups/{groupId}/projects but in graphql. You can see that in the REST documentation it lists the with_shared property, and its enabled by default. I can’t find the equivalent in graphql
The query looks something like this
query {
group(fullPath: "{groupPath}") {
requireTwoFactorAuthentication
projects(includeSubgroups: true, first:100) {
nodes {
id
name
fullPath
}
}
}
}
I tried ticking every possible flag I could find in the GraphiQl explorer for the group -> projects query.. no luck. I can’t seem to find anything in GitLabs docs that covers this..
any ideas?
Read more here: Source link
