const Foo = Schema.struct(...)
const Bar = Schema.struct(...)
const Name = Schema.struct(...)
const CantThinkOfName = pipe(
Name,
Schema.stepInto("foo", Foo, name => getFooByName(name.id)),
Schema.stepInto("bars", Schame.array(Bar), name => getBarsForName(Name.id))
)
const Foo = Schema.struct(...)
const Bar = Schema.struct(...)
const Name = Schema.struct(...)
const CantThinkOfName = pipe(
Name,
Schema.stepInto("foo", Foo, name => getFooByName(name.id)),
Schema.stepInto("bars", Schame.array(Bar), name => getBarsForName(Name.id))
)