cypher-query-builder
cypher-query-builder copied to clipboard
Transformer improvements & customization
- Allow custom
transformer
instance to be passed intoConnection
constructor options - Updated transformer methods to be
protected
instead ofprivate
and have explicitany
return types. This allows subclasses to use theis*
methods and override thetransform*
methods to return whatever they want. - Added
is*
andtransform*
for temporal types. Currently maintaining compatibility with previous functionality. subclasses can do something different if they wish. I, for instance, want to return Luxon objects. - Updated parameters to have
unknown
instead ofany
which makes the code type safe.