dgraphclient

package
v0.17.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AlterSchema

func AlterSchema(ctx context.Context, hostName, schema string) (string, error)

func DropAllData

func DropAllData(ctx context.Context, hostName string) (string, error)

func DropAttribute

func DropAttribute(ctx context.Context, hostName, attr string) (string, error)

func Initialize

func Initialize()

func ShutdownConns

func ShutdownConns()

Types

type Mutation

type Mutation struct {
	SetJson   string
	DelJson   string
	SetNquads string
	DelNquads string
	Condition string
}

type Query

type Query struct {
	Query     string
	Variables map[string]string
}

type Request

type Request struct {
	Query     Query
	Mutations []Mutation
}

type Response

type Response struct {
	Json string
	Uids map[string]string
}

func ExecuteQuery

func ExecuteQuery(ctx context.Context, hostName string, req *Request) (*Response, error)

Jump to

Keyboard shortcuts

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