Skip to content

Selectively updating and deleting facets #4787

@hackintoshrao

Description

@hackintoshrao

What version of Dgraph are you using?

Dgraph v1.1

Have you tried reproducing the issue with the latest release?

Yes

What is the hardware spec (RAM, OS)?

NA

Steps to reproduce the issue (command/config used to run Dgraph).

Create multiple facets for the same predicate and try to selectively update or delete one of them.

Expected behaviour and actual result.

Currently, when you have multiple facets for a given predicate, it's not possible to write one query to selectively edit or delete one of them.
The way around is to read all the facets for a given predicate into memory, selectively edit them, and write all of them back.

If we are giving people the freedom to have multiple facets, not able to able to selectively update or delete them in one query is kind of counter-intuitive.
If this is not something we would want to support, we should at least document this behaviour and have more examples around it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/facetsIssues related to face handling, querying, etc.kind/enhancementSomething could be better.status/acceptedWe accept to investigate/work on it.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions