• Converts the column property name and order from lower case to snake case (all caps) as required by a Postgraphile backend. It will return undefined if the calculated value can not be found on the sortingEnum.

    Type Parameters

    Parameters

    • sort: undefined | SortData<Y>

      Sorting data coming from <Explorer />

    • sortingEnum: T

      Enumeration containing the values on your Postgraphile backend. Usually {QueryName}OrderBy.

    Returns undefined | T[keyof T][]

Generated using TypeDoc