Are there any commands to get overall data info

Not exactly. Dgraph is doing a search. In this case he looks for all terms that have “Jean-Pierre” and “Jeunet”. That are recorded in English (name @ en). But surely anyone who is “searching” has to have an idea of what to look for.

Actually Dgraph indexes according to what you request. So he’s just going to dig that corner of the index. Generally to search by term you should index like this

name: string @index (exact, term).

This line sets the indexing to “exact” and “term”.
But of course, you must learn to use indexing in your favor. More on that here. Get started with Dgraph

As I said earlier, you do not have to assume anything. You are just searching. The only thing that DB admins should do is plan the indexing and a query pattern.

With the schema {} query, you will only receive the schema format. There will not even come a UID. Because this query does not look for Nodes.

Dgraph is a DB based on GraphQL. Whoever understands GraphQL will do well with Dgraph. As Dgraph uses the “logic” of GraphQL plus the mathematical concept of graphs makes it a little strange for people who came from old standard databases like SQL.

The only thing you need to care on is the predicate. And you can do this by Querying Schema. After that, you will build your default query to request what you want. Using Ratel you can get a good build of Queries. It predicts possible predicates that you will use.

Let’s say you found a predicate called “party” When you Queried for Schema.

{
  allMyDesiredParties(func: allofterms(party, "Rock in Rio")) {
    uid
   expand(_all_) {expand(_all_)} 
# using expand(_all_) you do not have to worry about having prior knowledge of anything. 
# Dgraph will expand until you can find no more connection between nodes ..
  }
}

You will build your query thinking how it was indexed. If it has not been indexed Dgraph will not return to you. It will show an error of type “This predicate has no indexing”.

So it’s important to pay attention to Schema and indexing. To build your application.

If you have a predicate that has not been indexed. You can use “Has (some_predicate)” to collect Nodes with this predicate. For example.

{
  Data_2018(func: has(predicate)) {
    uid
   expand(_all_) {
       expand(_all_)
    } 
  }
}