Skip to content

Query graph with empty string values. #2108

@sboorlagadda

Description

@sboorlagadda

As per this discussion there could be some use cases where attribute values are empty strings. Dgraph should allow querying in such cases.

Data

{
  "data": {
    "rooms": [
      {
        "name": "room 1"
      },
      {
        "name": "room 2"
      },
      {
        "name": ""
      }
    ]
  }
}

Query

{
  rooms(func: has(room)) {
    count(room @filter(eq(room, "")))
  }
}

Metadata

Metadata

Assignees

Labels

kind/bugSomething is broken.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions