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

Shopify Partner
2 0 0

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.
key: 838291919

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

Any help would be very useful, thanks in advance

Replies 0 (0)