Skip to content

Commit

Permalink
added user.ngql in example dataset
Browse files Browse the repository at this point in the history
  • Loading branch information
wey-gu committed Feb 21, 2023
1 parent 15cd172 commit 9855f12
Show file tree
Hide file tree
Showing 2 changed files with 201 additions and 0 deletions.
7 changes: 7 additions & 0 deletions dbt_project/to_nebulagraph/to_ngql.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,13 @@ def generate_edge_ngql(batch, prefix, indexes):
indexes=[0, 1, 2],
)

convert_node_records_to_ngql(
"user_watched_movies.csv",
"user.ngql",
prefix="INSERT VERTEX `user`() VALUES ",
indexes=[0],
)

convert_edge_records_to_ngql(
"acted_by.csv",
"acted_by.ngql",
Expand Down
Loading

0 comments on commit 9855f12

Please sign in to comment.