GraphQL query to get list of all maven virtual registries
Overview
We need to implement a GraphQL query that allows users to retrieve a list of all Maven virtual registries at the group level as shown in the design mockup: #493842[Virtual-registries-list-by-type.png]
Requirements
The query should:
- Be accessible at the group level
- Focus specifically on Maven package type
- Allow filtering by registry name
- Support sorting by created date and updated date
- Return pagination metadata and a count of total Maven virtual registries
- Return key information about each Maven virtual registry
Expected fields in the response:
- Total count of virtual registries matching the filter criteria
- Paginated list of virtual registries, each including:
- ID
- Name
- Description
- Number of upstream registries
- Created date
- Updated date
Proposal
Query Structure
query mavenVirtualRegistries(
$fullPath: ID!,
$name: String,
$sort: VirtualRegistrySortEnum,
$first: Int,
$after: String
) {
group(fullPath: $fullPath) {
mavenVirtualRegistries(
name: $name,
sort: $sort,
first: $first,
after: $after
) {
count
pageInfo {
hasNextPage
endCursor
}
nodes {
id
name
description
upstreamsCount
createdAt
updatedAt
}
}
}
}
Edited by 🤖 GitLab Bot 🤖