What I want to do
Use live loader to import data
What I did
I can connect to, and import the data to Dgraph but I can’t figure out how to get fields that have @hasinverse to relate properly.
using schema like
type Product {
name: String!
category: Category
}
type Category {
name: String!
products: [Product] @hasinverse(field: "category")
}
and loading using the json format
[
{
'Category.name': catgName,
'Category.products': ""
},
{
'Product.name': productName,
'Product.category': []
}
]