package
0.7.7
Repository: https://github.com/igm/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

No description provided by the author
Bool is a helper function to add a bool to an NQuad.ObjectValue.
Date is a helper function to add a date(time.Time) to an NQuad.ObjectValue.
Datetime is a helper function to add a date(time.Time) to an NQuad.ObjectValue.
Float is a helper function to add a float to an NQuad.ObjectValue.
Int is a helper function to add a int to an NQuad.ObjectValue.
NewBatchMutation is used to create a new batch.
Password is a helper function to add a bool to an NQuad.ObjectValue.
Str is a helper function to add a string to an NQuad.ObjectValue.
Uid converts an uint64 to a string, which can be used as part of Subject and ObjectId fields in the protos.NQuad.
ValueFromGeoJson is a helper function to add a geojson string to an NQuad.ObjectValue.

# Constants

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

# Structs

BatchMutation is used to batch mutations and send them off to the server concurrently.
Counter keeps a track of various parameters about a batch mutation.
Req wraps the protos.Request so that helper methods can be defined on it.

# Type aliases

No description provided by the author