Skip to content

Extend QueryOrder #675

@mcasarrubios

Description

@mcasarrubios

Is your feature request related to a problem? Please describe.
I need order by a column with the NULLS LAST/NULLS FIRSTcondition (postgres)

Describe the solution you'd like
Maybe we can extend QueryOrder Enum:

export declare enum QueryOrder {
    ASC = "ASC",
    ASC_NULLS_LAST = "ASC NULLS LAST",
    ASC_NULLS_FIRST = "ASC NULLS FIRST",
    DESC = "DESC",
    DESC_NULLS_LAST = "DESC NULLS LAST",
    ...
}

Describe alternatives you've considered
As a workaround, I'm using queryBuilder (knex) for doing it, but I would like to do that from Entity Repository methods.

I would be happy to make a pull request with this feature, but I would need you to point me in the right direction. Do we need modify anything else? Maybe here?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions