Dgraph
Dgraph is The Modern Graph Database, used for Graph Databases . Built to be fault-tolerant, on a distributed graph database, that gives developers the tools to rapidly build and model applications at scale
Prepare
When referring to this document to use Dgraph, please read and ensure the following points:
-
Login to Websoft9 Console and find or install Dgraph:
- Go to My Apps listing applications
- Go to App Store installing target application
-
This application is installed by Websoft9 console.
-
The purpose of this application complies with the apache2 open source license agreement.
-
Configure the domain name or server security group opens external network ports for application access.
Getting started
Initial setup
-
After completing the installation of Dgraph in the Websoft9 Console, get the applicaiton's Overview and Access information from the My Apps section
-
Select Launch Latest to access the Dgraph console
Test publicly available database nodes
-
Metal can connect to the official public instance at https://play.dgraph.io for testing.
-
After a successful connection, run the following code to get the relationship graph.
{
user(func: eq(name, "Alice")) {
user(func: eq(name, "Alice")) { name
friend {
user(func: eq(name, "Alice")) { name
name { name
}
}
}
Test the database node for this application(alpha)
-
Connect to
http://URL:port
- The URL must be a public IP or domain name; container names are not supported.
- The port is the external port of the alpha(database) node
-
Login without a password
Setting a password for the groot user is an enterprise feature(ACL)
Configuration options
- The Dgraph application consists of three nodes: zero(cluster), alpha(database), and ratel(graphical interface)
- ACL (Access Control List) features are available in the enterprise edition.
Administer
Troubleshooting
ratel load incomplete?
The application includes some external JavaScript files.
ratel can be accessed without password?
Yes, it is recommended to use a Gateway to set a password.
What is the purpose of whitelist and token?
They control administrative operations on the database, such as building tables. However, they do not control queries, allowing any external connection to perform queries.