Serves as the base for creating custom data transformers.
Example
// Creates a one-to-one relationship between two transformers transformer.item(value)
// Creates a one-to-many relationship between two transformer transformer.collection(values)
// Wraps the value inside a Maybe to allow undefined values when forming a relation transformer.whenLoaded(value)
// Lazily compute value when a conditional is true. A simpler way of writing ternary transformer.when(conditon, () =>computeValue())
// Sets the value when an aggregate was computed for the relationship. Think // of it as a shorthand of self reading the value from the $extras object transformer.whenCounted('relationName')
Serves as the base for creating custom data transformers.
Example