BoM items can be accessed by pagination.
Pagination helps keep network responses small and fast. If you are experiencing issues with speed, or timeout errors, this could be a solution.
You can access WIP variant BoM items, or released variant BoM items. First, you must access the relevant ID.
An example of how to access the ID:
query getBomByProjectId {
desProjectById(
id: "RGVz..."
) {
design {
#WIP
variants {
name
id
}
#Release
releases {
nodes {
variants {
name
id
}
}
}
}
}
}Then you can run either this query for WIP:
query bomIdPagination_WIP {
desWipVariantById(
id: "RGVzV2..."
) {
id
#After value is the end cursor for the previous page
bom {
items {
nodes {
quantity
bomItemInstances {
designator
}
component {
details {
parameters {
name
value
}
}
name
description
isManaged
}
}
pageInfo {
endCursor
}
}
}
}
}Or this query for released variant:
query query bomIdPagination_released {
desReleaseVariantById(
id: "RGV..."
) {
id
#After value is the end cursor for the previous page
bom {
items {
nodes {
quantity
bomItemInstances {
designator
}
component {
details {
parameters {
name
value
}
}
name
description
isManaged
}
}
pageInfo {
endCursor
}
}
}
}
}
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article