package
0.8.3
Repository: https://github.com/forchain/dgraph.git
Documentation: pkg.go.dev

# README

Go client

GoDoc

This package provides helper function for interacting with the Dgraph server. You can use it to run mutations and queries. You can also use BatchMutation to upload data concurrently. It communicates with the server using gRPC.

# Functions

DeletePredicate is used to delete all the data corresponding to a predicate.
TODO(tzdybal) - hide this function from users.
NewDgraphClient creates a new Dgraph for interacting with the Dgraph store connected to in conns.
NewEdge creates an Edge from an NQuad.
Unmarshal is used to unpack a query response into a custom struct.

# Constants

DEL indicates a Delete mutation.
SET indicates a Set mutation.

# Variables

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

BatchMutationOptions sets the clients batch mode to Pending number of buffers each of Size.
Counter keeps a track of various parameters about a batch mutation.
A Dgraph is the data structure held by the user program for all interactions with the Dgraph server.
An Edge represents an edge between a source node and a target (either a node or a value).
Node represents a single node in the graph.
A Req represents a single request to the backend Dgraph instance.