-
Is it possible to use one of the standard loaders (e.g dotenvLoader) followed by a custom function to transform the environment variables into the expected Schema shape? In other words, the dotenvLoader would not return the correct schema, but would load the raw environment, and the transformer would return the object matching the final schema. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
You can |
Beta Was this translation helpful? Give feedback.
-
Perfect. Yes, it's somehow easy to miss that section, but I should have seen it. I'm not sure what to call it. Maybe "Transforming Loaded Data"? |
Beta Was this translation helpful? Give feedback.
You can
normalize
it, check out this chapter of documentation. Maybe I should rearrange the section title a bit?