Hi,
I have a large JSON file, containing only records of a single type. I have to import them to DGraph into a certain GraphQL type. Is this possible with Live Loader?
The JSON file contains only array of json objects, e.g.
[
{
“name”: “some-name”,
“address”: “some-addr”
},
…
]
with nothing indicating the actual type (e.g. Person). As I read from example, I have to transform the JSON to include the type
[
{
“Person.name”: “some-name”,
“Person.address”: “some-addr”
},
…
]
Is this the correct way? Or is there any option of the Live Loader to specify the target type?
Thanks and regards