Im taking the tour A Tour of Dgraph, and run:
industry: string @index(term) .
boss_of: uid .
and then :
{
"set": [
{
"uid": "_:company1",
"industry": "Machinery",
"name": "CompanyABC"
},
{
"uid": "_:company2",
"industry": "High Tech",
"name": "The other company"
},
{
"uid": "_:jack",
"works_for": "_:company1",
"name": "Jack"
},
{
"uid": "_:ivy",
"works_for": "_:company1",
"boss_of": "_:jack",
"name": "Ivy"
},
{
"uid": "_:zoe",
"works_for": "_:company1",
"name": "Zoe"
},
{
"uid": "_:jose",
"works_for": "_:company2",
"name": "Jose"
},
{
"uid": "_:alexei",
"works_for": "_:company2",
"boss_of": "_:jose",
"name": "Alexei"
}
]
}
and is done. But then i delete all the schema
and run:
use_tool: uid .
name: string @index(term) .
and then run:
{
"set": [
{
"uid": "_:tool1",
"name": "dgraph"
},
{
"uid": "_:tool2",
"name": "Mysql"
},
{
"uid": "_:juanbits",
"use_tool": "_:tool1",
"name": "Juanbits"
}
]
}
and i get the next error:
Input for predicate use_tool of type uid is scalar
i dont know what is wrong, if i replicate the example . i check the other similar questions, but i dont understand