Effect CommunityEC
Effect Community2mo ago
9 replies
Kooki Kodes

Handling Form Data to Nested Object Conversion in Effect Schema

Is there a method to handle the conversion of form data to a deeply nested obj in Effect Schema?

IE:
// encoded
FormData {
  'hello' -> 'world'
  'items[][id]' -> '1532342'
}
// decoded
{
  'hello': 'world',
  'items': [
    {
      'id': 1532342
    }
  ]
}
Was this page helpful?