2 Replies
yep that worked thanks! My use case is a little more complex though so it's still giving me an error - any way to make something like this work?
this starts to get complicated, I'd do this the long way with
because otherwise you have to start writing fancy types — but this suggests a utility to replace map that could make this work.
Before we go deeper, what are you trying to do, big picture?
I ask because if we go this route we're going to be writing code that should probably be part of the schema builder if this is a generally useful thing.