Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var DgraphAlterSchemaCallStack = testutils.NewCallStack()
var DgraphDropAllCallStack = testutils.NewCallStack()
var DgraphDropAttrCallStack = testutils.NewCallStack()
var DgraphQueryCallStack = testutils.NewCallStack()
Functions ¶
func AlterSchema ¶
Alters the schema of the dgraph database
Types ¶
type Mutation ¶
type Mutation struct {
// JSON for setting data
SetJson string
// JSON for deleting data
DelJson string
// RDF N-Quads for setting data
SetNquads string
// RDF N-Quads for deleting data
DelNquads string
// Condition for the mutation, as a DQL @if directive
Condition string
}
Represents a Dgraph mutation.
func (*Mutation) WithCondition ¶ added in v0.17.1
Adds a condition to the mutation, as a DQL @if directive.
func (*Mutation) WithDelJson ¶ added in v0.17.1
Adds a JSON string for deleting data to the mutation.
func (*Mutation) WithDelNquads ¶ added in v0.17.1
Adds RDF N-Quads for deleting data to the mutation.
func (*Mutation) WithSetJson ¶ added in v0.17.1
Adds a JSON string for setting data to the mutation.
func (*Mutation) WithSetNquads ¶ added in v0.17.1
Adds RDF N-Quads for setting data to the mutation.
type Response ¶
Represents a Dgraph response.
func ExecuteMutations ¶ added in v0.17.1
Executes one or more mutations on the Dgraph database.