Queries
hubs
Retrieves all hubs that match the specified criteria.
A Hub is a container of projects, shared resources, and users with a common context.
Template for Query:
query GetHubs($filter: HubFilterInput, $pagination: PaginationInput) {
hubs(filter: $filter, pagination: $pagination) {
# Hubs Fields
}
}
Template for Query Variables:
{
"filter" : "<SOME-HUBFILTER-INPUT-TYPE-VALUE>",
"pagination" : "<SOME-PAGINATION-INPUT-TYPE-VALUE>"
}
Arguments
filter | Specifies how to filter a list of hubs. You can filter by ID or by name. |
pagination | Specifies how to split the response into multiple pages. |
Possible Returns
Value Type | Description |
---|---|
Hubs! non-null |
Contains a list of hubs returned in response to a query. A hub is a container of projects, shared resources, and users with a common context. |
Example
Example 1
This example retrieves all accessible hubs. The optional pagination
parameter and filter
parameter are not used in the example because the number of hubs is low.
Query:
query{
hubs {
results {
name
id
}
}
}
Show More
Response:
{
"data": {
"hubs": {
"results": [
{
"name": "L2-Forge-Data-Team",
"id": "a.YnVzaW5lc3M6YXV0b2Rlc2syMDA2"
},
{
"name": "Doc-Team",
"id": "a.YnVzaW5lc3M6YXV0b2Rlc2syMDM5"
}
]
}
}
}
Show More