You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 11, 2024. It is now read-only.
Hi, thanks for raising this! This method is a bit of an odd one out because that API behaves a little different to the others.
Instead of changing the all method (which would be a breaking change), I wonder if it would be better to create a brand new method (Shop.current()?) that returns the first instance in data, similar to Customer.find().
I'll add this to our tracking, but to be transparent there are other things that would be done before this, so it might be a while before we can get to it. If you can open a PR, we'll be happy to review / merge it!
The call to
admin.rest.resources.Shop.all({ session })
returns the whole response, and not just thedata[0]
object:shopify-api-js/packages/shopify-api/rest/admin/2024-01/shop.ts
Line 44 in eae4573
Like the
Customer
resurce, it should returns the following:The text was updated successfully, but these errors were encountered: