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.

We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

Question: Why isn't metafield data referenced by a primary key?

Question: Why isn't metafield data referenced by a primary key?

naesmac
Tourist
9 0 3

I may be mixing up my lingo; it's been a solid chunk of time since I've done db dev. 

 

Why is there a bulk editor for updating metafield values when a value is simply modified? Shouldn't it be a simple value update then save while the system references the key? It seems to be referencing the value and gets confused when it changes. 

 

Screenshot 2023-11-17 at 10.34.05 AM.jpg

Reply 1 (1)

naesmac
Tourist
9 0 3

Example metafield:

Name:  Camera

Values: Nikon, Canon, Fuji

 

I apply these to products. I want to change Nikon to Sony. Shopify result: "WHAT HAPPENED?". I have to go through all products that were assigned Nikon and manually change them to Sony.


Expect: The value changes and is immediately reflected on the products using this value. Where there was Nikon before I should now see Sony. 


What is up with the bad behavior?