Skip to content

matthewmcneely/dgraph-v21.03-sandbox

 
 

Repository files navigation

Dgraph Sandbox for version 23.01

This repo serves as a quick start for spinning up a dgraph cluster, updating a schema and loading data. Everything's done with make, the only other requirement is Docker and optionally jq.

Requirements

  • Docker
  • make
  • curl (optional, for queries from the command line)
  • gql (optional, for graphql queries, download from here)
  • jq (optional, for queries from the command line)

Steps

  1. Clone this repo. It's possible I've created a branch for some issue we're collaborating on. If so, check out the branch for the issue.

  2. Spin up the cluster

make up
  1. Then in another terminal, load the schema
make schema
  1. Load the sample data
make load-data
  1. If there's some DQL query or mutation that needs to be applied for debugging/testing (this command loads the query in query.dql)
make query-dql | jq
  1. If there's a graphql query or mutation that needs to be applied for debugging/testing (this command loads the query in query.gql and variables.json)
make query-gql | jq

Alternatively, you can pop the content of those files into your favorite GraphQL client, use the http://localhost:8080/graphql endpoint.

About

Support files for spinning up a dgraph cluster, version v23.01

Resources

Stars

Watchers

Forks

Packages

No packages published