Queries
aecDesignsByHub
Retrieves designs in the given hub, using additional RSQL filters if provided.
Template for Query:
query GetAecDesignsByHub($hubId: ID!, $filter: AECDesignFilterInput, $pagination: PaginationInput) {
aecDesignsByHub(hubId: $hubId, filter: $filter, pagination: $pagination) {
# AecDesignsByHub Fields
}
}
Template for Query Variables:
{
"hubId" : "<SOME-ID-TYPE-SCALAR-VALUE>",
"filter" : "<SOME-AECDESIGNFILTER-INPUT-TYPE-VALUE>",
"pagination" : "<SOME-PAGINATION-INPUT-TYPE-VALUE>"
}
Arguments
hubId* ID! non-null | Hub to retrieve designs from. |
filter | RSQL filter to use for searching designs. |
pagination | Specifies how to split the response into multiple pages. |
* Required
Possible Returns
Value Type | Description |
---|---|
AECDesigns! non-null |
Contains a list of AECDesigns returned in response to a query. |
Examples
Example 1
Retrieves aecDesigns under a hub by hub ID.
Query:
query GetAECDesignsByHub($hubId: ID!, $pagination: PaginationInput) {
aecDesignsByHub(hubId: $hubId, pagination: $pagination) {
pagination {
pageSize
cursor
}
results {
id
name
}
}
}
Show More
Query Variables:
{
"hubId": "b.e4fbd315-2dc5-4026-8ca3-80f09d24ff42",
"pagination": {
"limit": 5
}
}
Response:
{
"data": {
"aecDesignsByHub": {
"pagination": {
"pageSize": 5,
"cursor": "Y3Vyc35Edz09fjU"
},
"results": [
{
"id": "YWVjZH5FMnRqOFJFOXRsSlRQNU9WVzBiaDZ4X0wyQ35uTm9LOFA3ZVNzS2lWem00aThDcVhn",
"name": "P50_UBC SBME Elec.rvt"
},
{
"id": "YWVjZH5FMnRqOFJFOXRsSlRQNU9WVzBiaDZ4X0wyQ34xMjJXNzhyLVFRdUNES3RHNFROb213",
"name": "P75_gCUB4.0_STR.rvt"
},
{
"id": "YWVjZH5FMnRqOFJFOXRsSlRQNU9WVzBiaDZ4X0wyQ356eS1GY1RoOFM3MkJhdTRqWlUzYkJB",
"name": "P75_LTU Housing - MEP.rvt"
},
{
"id": "YWVjZH5FMnRqOFJFOXRsSlRQNU9WVzBiaDZ4X0wyQ35iSjFTNmdCZ1RtYWMxLXJzdEJIWnBn",
"name": "P75_LTU Housing - Arch.rvt"
},
{
"id": "YWVjZH5FMnRqOFJFOXRsSlRQNU9WVzBiaDZ4X0wyQ35XcjlrQ1JpOFNNYXVXN1hQUF9EaHJ3",
"name": "P75_215071-00.rvt"
}
]
}
}
}
Show More