Count of line items on Order

Hello, I am curious if there is a way to simply get a count of line_items on a given Order without actually querying the line_items. I would like to do this to avoid the complexity cost of fetching line_items, iterating, etc. I don’t see anything in the docs.

If not, I may have to split up our queries using this strategy.

Thank you!

Hey @kokua,

Welcome back to the Community!

I don’t believe there is a way to get that information without querying the line_items and incurring the cost. If you’d like I can try to assist you with that strategy mentioned or possibly help you optimize your queries.

Let me know if there’s anything I can do to help!

Best,
RayanP