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.
Click to show internal directories.
Click to hide internal directories.