As a team solely focused on developer tools, we're always looking for ways to improve the developer experience, increase productivity and reduce friction.
With that in mind, the Turbine Go library recently introduced built-in transforms to bake in commonly use transform functionality.
flatten transform takes a nested JSON payload and flattens it so that it is only one level deep. Here's an example of it in action:
"email": "[email protected]"
"actions": ["register", "purchase"]
"user.email": "[email protected]",
This is useful for when you're going from a data store that supports nested objects (say a NoSQL Document Store like MongoDB) to a relational database (like Postgres or Amazon Redshift).
We will continue to expand the number of built-in transforms as well as extend them to support additional configuration and expand their usefulness.
You can see a full example of a Turbine App using the flatten transform here: Flatten Example Turbine App
As always, we'd love to receive feedback and suggestions on how we can improve.Tweet