overrideQueryArgType | WebHare Platform SDK
WebHare Platform SDK
    Preparing search index...

    Function overrideQueryArgType

    • Overrides the type of a value for arguments of query() (not all types are auto-detected, like UUID's or (+/-)Infinity for timestamps)

      Type Parameters

      • T extends keyof Bindables

      Parameters

      • value: Bindables[T][0]

        Value

      • type: T

        'Real' type of the value (to send to PostgreSQL)

      Returns unknown

      The value wrapped in an objects that forces the encoding of that value to the specified type when used as argument to query().