Hi there!
I was curious and did try the Tab DQL in the Dgraph Admin Interface. Unfortunately, I only get errors when doing so. Ho do you use this? I could only find examples when using it locally.
Cheers!
Hi there!
I was curious and did try the Tab DQL in the Dgraph Admin Interface. Unfortunately, I only get errors when doing so. Ho do you use this? I could only find examples when using it locally.
Cheers!
RDF syntax is like this:
{
set {
# triples in here
}
}
This syntax you are using is for JSON.
So looks like this UI accepts only JSON? There is an embedded Ratel somewhere. Try that one. Or use the JSON syntax.
Seems like the Ratel works
But how would I write this thing in JSON?
{
"set": {
????
}
}
Thanks! I’m obviously to dumb for this No clue how to write a triple in JSON. Doesn’t matter, I only need it if I want to manually update some fields with the @id
directive. I just change the schema briefly, update and then change it back.
Cheers anyway!
That’s really simple
{
"set": [
{
"uid": "0x7",
"User.email": "email@me.com"
}
]
}
The other details you can check the docs.