cables-gl / cables_docs

cables documentation docs.cables.gl
https://cables.gl/docs/docs
45 stars 16 forks source link

New op: ArraySetObjectValues #759

Open kikohs opened 6 months ago

kikohs commented 6 months ago

https://cables.gl/op/Ops.Team.DecodeOpen_hDmNr9.ArraySetObjectValues

Updates each object in an array with new data from a corresponding array, based on a specified key

This op takes an array of objects and updates each object's specified key with new data from a corresponding array of values. It supports deep updates using dot notation to specify the path to nested object properties. Error handling ensures keys are valid and do not reference non-existent paths or malformed strings. Users can choose to modify the original array directly or work on a copy of it. If an error is encountered, the operation returns null and logs detailed error information.

steam0r commented 6 months ago

we cloned this to a core op: https://dev.cables.gl/op/Ops.Json.ArraySetObjectValues

thank you!

steam0r commented 4 months ago

we decided to remove this again before release, we think these kind of ops should better live in teams and/or extensions to not clutter the core namespace too much