We are waiting for the docs to go live. In the meanwhile, here is the relevant paragraph from live loader:
It is possible to import data into a Slash GraphQL backend using live loader. In order to import data, do the following steps
- First import your schema into your Slash GraphQL backend, using either the APIs above or via the Schema Page.
- Find the gRPC endpoint for your cluster, as described in the advanced queries section. This will look like frozen-mango-42.grpc.us-west-1.aws.cloud.dgraph.io:443
- Run the live loader as follows. Do note that running this via docker requires you to use an unreleased tag (either master or v20.07-slash)
docker run -it --rm -v /path/to/g01.json.gz:/tmp/g01.json.gz dgraph:dgraph/v20.07-slash \
dgraph live --slash_grpc_endpoint=<grpc-endpoint>:443 -f /tmp/g01.json.gz -t <api-token>