Design: Accessing BoM items by pagination

Modified on Tue, 25 Mar at 10:04 AM

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
          }
        }
      }
    }
  }
}
HTML

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
        }
      }
    }
  }
}
HTML

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
        }
      }
    }
  }
}

HTML


Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article