Graph Api: Is it possible to filter merge requests by state and perhaps even changed files?

Also, while using GraphiQL, the query mergeRequests(first: 100) yields no results. I’m forced to specify id’s and I’d ideally want to do mergeRequests(first: 100, states: [merged]) like the github api supports.

1 Like

I want exactly the same thing. Unfortunately, it appears that gitlab’s GraphQL schema currently doesn’t offer a merge requests as an array under a project.

If you want to look at a multiplicity of merge requests it seems that the only choice is the v4 mergeRequests API.