Skip to content

neq in where filter does not include null values #340

Open
@hvlawren

Description

@hvlawren

Description/Steps to reproduce

  1. Create a model with String properties
  2. Insert instances with one of the string properties unset. (NULL in DB)
  3. Run a query for model {where: {stringProp: {neq: "value"}}}
  4. NULL entries are not included

Expected result

Null entries are not equal to value so should be included

Additional information

I notice that the output sql from the connector is !=, whereas IS DISTINCT FROM would work for NULL values. As far as I can tell, there is no operator that will invoke IS DISTINCT FROM. If this won't be fixed/is considered not an issue, having this at least documented somewhere would be useful.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions