Recursive Pattern and Facets (JSON Mutation Format)


Report a Dgraph Bug

What version of Dgraph are you using?

Dgraph Version
$ dgraph version
 
v20.11.0

Have you tried reproducing the issue with the latest release?

Soon I will

What is the hardware spec (RAM, OS)?

16GB, Win10, Run in Docker

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

{
    "set": {
        "Recursive": [
            {
  		           "Recursive|Name": "Oachkatzschwoaf",
                   "Recursive": [
                    {
                        
                    }
                ]                
            }
        ]
    }
}

Expected behaviour and actual result.

Create nodes as expected

Get this error

{
  "name": "t",
  "url": "http://localhost:8081/mutate?commitNow=true",
  "errors": [
    {
      "message": "facets format should be of type map for scalarlist predicates, found: Oachkatzschwoaf for facet: Recursive|Name",
      "extensions": {
        "code": "ErrorInvalidRequest"
      }
    }
  ]
}

I testet it with the Main (20.11.0-rc1-437-g4e19f19c) pull of docker!
The bug seems fixed

Atleast it worked and returned a valid result!

When will this version be released?

Greetings
Florian

I think this will have to be cherrypicked into 21.03. cc @hardik

1 Like

Reproducible in v20.11.0 but fixed in v21.03. The fix commit (PR-7455) is available in 21.03 as well.