BUG: DQL doesn't connect nodes

Okay, if you know the UID. And always will. You just have to do

RDF Mutation

<0x1> <linkTo> <0x2> .

JSON Mutation

{
  "set": [
    {
      "uid": "0x1",
      "linkTo": [
        {
          "uid": "0x2"
        }
      ]
    }
  ]
}

That’s it.

See the doc share by Raphael https://dgraph.io/docs/mutations/json-mutation-format/

I don’t get your question. If you do a query, you know what you are looking for. And what to extract. It can have N fields.