From 71659be6639acb2aa05567ac4c4a3877d1d5032d Mon Sep 17 00:00:00 2001 From: Manish R Jain <manishrjain@gmail.com> Date: Mon, 30 Nov 2015 16:39:25 +1100 Subject: [PATCH] Fix the indentation issue --- README.md | 44 ++++++++++++++++++++++---------------------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/README.md b/README.md index f2b34cb1..da64b41a 100644 --- a/README.md +++ b/README.md @@ -135,28 +135,28 @@ This would now run dgraph server at port 8080. If you want to run it at some oth Now you can run GraphQL queries over freebase film data like so: ``` curl localhost:8080/query -XPOST -d '{ -me(_xid_: m.06pj8) { - type.object.name.en - film.director.film { - type.object.name.en - film.film.starring { - film.performance.character { - type.object.name.en - } - film.performance.actor { - film.director.film { - type.object.name.en - } - type.object.name.en - } - } - film.film.initial_release_date - film.film.country - film.film.genre { - type.object.name.en - } - } -} + me(_xid_: m.06pj8) { + type.object.name.en + film.director.film { + type.object.name.en + film.film.starring { + film.performance.character { + type.object.name.en + } + film.performance.actor { + type.object.name.en + film.director.film { + type.object.name.en + } + } + } + film.film.initial_release_date + film.film.country + film.film.genre { + type.object.name.en + } + } + } }' > output.json ``` This query would find all movies directed by Steven Spielberg, their names, initial release dates, countries, genres, and the cast of these movies, i.e. characteres and actors playing those characters; and all the movies directed by these actors, if any. -- GitLab