dgraph

package
v25.0.0-preview1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 18, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AsString

func AsString(queries []*dql.GraphQuery) string

AsString writes query as an indented dql query string. AsString doesn't validate query, and so doesn't return an error if query is 'malformed' - it might just write something that wouldn't parse as a Dgraph query.

Types

type DgraphEx

type DgraphEx struct{}

func (*DgraphEx) CommitOrAbort

func (dg *DgraphEx) CommitOrAbort(ctx context.Context,
	tc *dgoapi.TxnContext) (*dgoapi.TxnContext, error)

CommitOrAbort is the underlying dgraph implementation for committing a Dgraph transaction

func (*DgraphEx) Execute

func (dg *DgraphEx) Execute(ctx context.Context, req *dgoapi.Request,
	field schema.Field) (*dgoapi.Response, error)

Execute is the underlying dgraph implementation of Dgraph execution. If field is nil, returned response has JSON in DQL form, otherwise it will be in GraphQL form.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL