Skip to content

Support filtering for a null value #334

Description

@SphtKr

In the current filtering or future (#293?) filtering mechanism, can we designate a way to query for a null value? This may have implications for how various implementing languages treat NULL vs. undefined or whatever, but the scope of what I'm discussing here is that if a resource can return key: null in JSON, I should be able to filter as ?key=null somehow and retrieve those objects.

Use cases:

  • A post without an author
  • Distinguish between summary === null vs. summary === ''

I'm agnostic as to how, and I'm not even sure I have a good idea to suggest (?author=%00? probably not...).

It might be worth mentioning that this could affect #267 as well...i.e. should specifying a filter value of null on a to-many relationship designate zero related objects?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions