How to get metafields from customer with same namespace and different key

Aragon
Shopify Partner
2 0 0

Hello,
I would like you to help me on how I can obtain the metadata of a client in a component created using checkout ui extension. The metafields that I want to obtain have the same namespace but a different key and are of type json, e.g.
namespace:gpsLocation
key: 838291919

nampe:gpsLocation
key: 878282828


In the documentation it tells me to place each metafield individually, and that is a problem since if I create a new address a new metafiled will be added and I would have to re-edit my created component to add the new metafield.
These are my metafields.
Screenshot 2024-05-02 111350.png
https://shopify.dev/docs/apps/checkout/display-custom-data?extension=react

Any help would be very useful, thanks in advance

Replies 0 (0)