Everything in the title.
To avoid use raw sql to update a value through all instances of a component, how could I with
strapi.connection.default … , list all instances of a component and update a specific value.
My specific use-case was :
- I have some
- Which contain some
Linkcomponent at different levels of nesting (so it’s a pain in the ass to loop through all Pages and look for each Link)
-- Page (collectionType) ---- DynamicZone A -------- Link A-1 -------- Component A-A ------------ Link A-A-1 ------------ Link A-A-2 ... etc
Linkcomponent have initially an URL field with. a default value :
- We change the default value to nothing → we have to update production data