Have your say in Community Polls: What was/is your greatest motivation to start your own business?
Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

`legacyResourceId` is not available on LineItem via Graphql api

`legacyResourceId` is not available on LineItem via Graphql api

Andrew-Corknine
Explorer
76 1 29

Hi there,
I am working on migrating a few api calls from the rest API to the graphql API.

I have noticed that legacyResourceId is not available on LineItem type.  Is there a way to make this available?

Reply 1 (1)

Luke_K
Shopify Staff
402 66 102

Hey @Andrew-Corknine 

Alas, there isn't a way to make it available. I'll make this known for the attention of our Product Team, definitely. 

The End of the Line Item's ID in GraphQL e.g gid://shopify/LineItem/123456789 maps to the same line item ID in REST but I can understand how it would be easier to just handle the legacyResourceID if you are transitioning over calls from one API to the other. Hope that at least clears up things!

 

| Shopify |
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution!