Skip to content

havingNull and friends should be declared as WhereNullMethod #1699

@IlyaSemenov

Description

@IlyaSemenov

Shouldn't havingNull and friends be declared as WhereNullMethod not WhereMethod ?

havingNull: WhereMethod<this>;
orHavingNull: WhereMethod<this>;
havingNotNull: WhereMethod<this>;
orHavingNotNull: WhereMethod<this>;

Currently, this code doesn't compile with typing errors:

MyModel.query().havingNull('foo')

Same issue for other having methods, they should be declared as WhereInMethod, WhereExistsMethod, etc.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions