Prerequisites
Install the HelixDB CLIStep 1: Define the schema in schema.hx
We’re going to define the schema for our social network inschema.hx.
We’re going to have User nodes where users can Follow other users.
We’re also going to have Post nodes where users can Create posts.
schema.hx
Step 2: Inserting data
Creating a user is done by inserting a new node into the graph.Step 3: Query the data
To get all users, we can use the following query:JSON output
JSON output