php-shopify icon indicating copy to clipboard operation
php-shopify copied to clipboard

rest api to graphql

Open way2enjoy2 opened this issue 1 year ago • 7 comments

now shopify is reminding of using graphql instead of rest api so this will be automatically cared by your code or we need to write ourself if this is my code for shopify rest api
$productspp = json_encode($shopify->Product($prod_id)->get(),true); what will be equivalent for graphql

way2enjoy2 avatar Oct 09 '24 01:10 way2enjoy2

You need to change codes manually until we can create some wrapper to convert the codes into graphql. It will need some time, We have until February 2025. Let's see what we can achieve by that time.

tareqtms avatar Oct 19 '24 08:10 tareqtms

Following

epoks7 avatar Jan 04 '25 14:01 epoks7

any update sir ??

way2enjoy2 avatar Jan 05 '25 02:01 way2enjoy2

@way2enjoy2 Sorry, I haven't had enough time to work on this yet. As we are approaching the deadline, I will try to manage some time in the next few weeks. But as you already know, whatever I am trying to do isn't even a guaranteed solution. So if you have something important, I suggest you take your own actions accordingly.

tareqtms avatar Jan 07 '25 06:01 tareqtms

Really struggling to migrate

epoks7 avatar Jan 16 '25 22:01 epoks7

@way2enjoy2 @epoks7 As GraphQL requires to mention returning data columns, the auto-migration of code seems to be a cumbersome work to do, still not guaranteed that will cover all scenarios. So better we follow the Shopify guideline to migrate our code to GraphQL. Here is the Shopify guide for the migration: https://shopify.dev/docs/apps/build/graphql/migrate/libraries

tareqtms avatar Jan 19 '25 12:01 tareqtms

That’s bad news. I don’t think that Shopify realises the impact deprecating the REST api is having on the codebase out there. We are going to have to review and updated 1,000s on lines of code as a result of this just to keep our apps working.Sent from my iPhoneOn 19 Jan 2025, at 12:31, Tareq Mahmood @.***> wrote: @way2enjoy2 @epoks7 As GraphQL requires to mention returning data columns, the auto-migration of code seems to be a cumbersome work to do, still not guaranteed that will cover all scenarios. So better we follow the Shopify guideline to migrate our code to GraphQL. Here is the Shopify guide for the migration: https://shopify.dev/docs/apps/build/graphql/migrate/libraries

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: @.***>

rancey avatar Jan 19 '25 13:01 rancey