Skip to content

Dgraph isn't automatically setting values ​​as list in structured mutations as list. #3788

@MichelDiz

Description

@MichelDiz

If you suspect this could be a bug, follow the template.

  • What version of Dgraph are you using?
    1.1RC

  • Have you tried reproducing the issue with latest release?
    Yes, latest RC

  • Steps to reproduce the issue (command/config used to run Dgraph).
    Add a list mutation in JSON before set the schema.

  • Expected behaviour and actual result.
    Since Dgraph automatically recognizes Types (Like [uid] this is a "list") I think it should recognize a list through a structured mutation as a list. Avoiding the user lost some data from his list. In case he forgets to define the scheme before mutating.

I didn't tested it in RDF tho. Will do.

Check reference: #3787

Metadata

Metadata

Assignees

Labels

area/data-lossIssues related to loss of data.area/mutationsRelated to mutations JSON or RDF.kind/bugSomething is broken.priority/P1Serious issue that requires eventual attention (can wait a bit)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