The INSERT/UPSERT docs currently don’t describe how to write a Projection.
Following the type in the reference leads to
type Projection a b = Transpose (Field a) a -> Transpose (Field a) b
where Transpose is an associated type of the Table class, which has over a dozen instances, so it’s very hard to figure out how a Projection would actually look like in practice.
The INSERT/UPSERT docs currently don’t describe how to write a
Projection.Following the type in the reference leads to
where
Transposeis an associated type of theTableclass, which has over a dozen instances, so it’s very hard to figure out how aProjectionwould actually look like in practice.