Skip to content

IS NULL condition #59

Description

@czkody

Hello,

is there any way to create "IS NULL" condition. Tried to do

Model.find({field: null}, ...

but that throws exception

500 TypeError: Cannot read property 'orm_special_object' of null

    at Builder.build (.\node_modules\orm\lib\sql\Select.js:130:38)
    at Driver.find(.\node_modules\orm\lib\Drivers\DML\mysql.js:94:34)
    at Object.run (.\node_modules\orm\lib\ChainFind.js:75:16)
    at Function.model.find (.\node_modules\orm\lib\Model.js:242:9)

Thank you for your great work on project.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions