We use the products query to get all of the products in the system a few times a day. This allows us to get the updated size/weight, the allocated qty, available qty, and backordered qty, and the kits and components of the kits.
With the original api, this was a single call and all of the data was there. With graph, I’m not able to request more than 30 products at a time or I get a credit error (even if this is the first call of the day).
Also after I do get the first batch, I have to wait anywhere from 2 - 20 seconds for more credits. We have thousands of products. What used to be a single few-second request is now going to take hours or longer.
Am I doing something wrong? If not, this makes Shiphero useless for us. Here’s my query. Notice I’m only requesting 30 at a time.
query {
products {
request_id
complexity
data(first:30) {
pageInfo {
hasNextPage
endCursor
}
edges {
node {
id
name
sku
dimensions {
height
width
length
weight
}
warehouse_products {
warehouse_id
on_hand
available
backorder
allocated
inventory_bin
inventory_overstock_bin
reserve_inventory
updated_at
}
kit
active
tags
kit_components {
sku
quantity
}
}
}
}
}
}