Getting started with Dgraph #1: running, mutations, and queries

preview_player
Показать описание
In episode one of Getting started with Dgraph, we cover:

- (0:18) how to run the database
- (1:40) how to create graphs with mutations, and
- (3:53) how to retrieve them back with queries.

Рекомендации по теме
Комментарии
Автор

The tutorial is not working for me. I'm following all the instructions, and at 3:33 he makes the "ann follows ben" mutation, but when I enter it *exactly* as he has it, I get this error:
Error: t: while lexing { "set":[ { "name":"Ann", "age":28, "follows":[ { "name":"Ben", "age":31 } ] }, } at line 2 column 2: Unrecognized character inside mutation: U+0022 '"'


So I change the double quotes enclosing "set" with single ticks, and get:
Error: t: while lexing { 'set':[ { "name":"Ann", "age":28, "follows":[ { "name":"Ben", "age":31 } ] }, } at line 2 column 2: Unrecognized character inside mutation: U+0027 '''

So I take the quotes out entirely around the word "set", and now get:
Error: t: while lexing { set:[ { "name":"Ann", "age":28, "follows":[ { "name":"Ben", "age":31 } ] }, } at line 2 column 5: Unrecognized character inside mutation: U+003A ':'

I love the idea of this dgraph, but why is it so difficult to make even the simplest mutation?
UPDATE: The problem is the comma on line 12 at 3:28, which is mysteriously missing at 3:33 when the program runs successfully. Please add a notation to the video or something so others trying to follow along also don't go mad. :p Also - the actual error was the comma, but the error message indicated a completely different line and issue. It'd be nice if the lexer was smarter about what's actually wrong.

ColinFox
Автор

I think today graph databases are on the fringes in large enterprises. Dgraph has the potential to make graph databases mainstream. Focus extensively on dev tooling/integrations and education.

Great tutorial by the way.

thyagtubes
Автор

Fanfare, applaus for the start of this episodes! Great, keep on going :)

augusttinahell
Автор

Fun Fact -> Ratel isn't in the latest image anymore port 8000 is useless

skzanderson
Автор

<3 and you are watching #justforfunc

ajinkyax
Автор

i could not run docker it says it is not recognized as an internal command help me please. I use windows

leidygarciavargas
Автор

Seems like Neo4j and cypher is alot easier to read and write...

AhmedThaking
join shbcf.ru