...

/

Load a Schema into Dgraph

Load a Schema into Dgraph

Learn how the book graph can be modeled in Dgraph, and load GraphQL and DQL schema for it into Dgraph.

Visual representation

The figure below shows how the reference book graph can be mapped in Dgraph.

Press + to interact
Book graph mapped in Dgraph
Book graph mapped in Dgraph

Note that this resembles the RDF graph but with properties added to the edges.

How to load the data

We have some choices in how we load our book graph:

  • We can load the data directly, and Dgraph autogenerates predicates for us. ...