Documentation ¶
Index ¶
- Constants
- func Close()
- func CreateSchema() error
- func ExecuteQuery(query string, root interface{}) error
- func ExecuteQueryRaw(query string) ([]byte, error)
- func GetUID(id string, nodeType string) string
- func MutateNode(data interface{}, mutateType string) (*api.Assigned, error)
- func Open(url string) error
- func RemoveResourcesInactiveInCurrentMonth()
- type ID
Constants ¶
View Source
const ( CREATE = "create" UPDATE = "update" DELETE = "delete" )
mutation types
Variables ¶
This section is empty.
Functions ¶
func ExecuteQuery ¶
ExecuteQuery given a query and it fetches and writes result into interface
func ExecuteQueryRaw ¶
ExecuteQueryRaw given a query and it fetches and writes result into interface
func GetUID ¶
GetUID returns the UID of the node in the Dgraph returns empty string if error has occurred
func MutateNode ¶
MutateNode mutates a Dgraph transaction
func RemoveResourcesInactiveInCurrentMonth ¶
func RemoveResourcesInactiveInCurrentMonth()
RemoveResourcesInactiveInCurrentMonth deletes all resources which have their deletion time stamp before the start of current month.
Types ¶
Click to show internal directories.
Click to hide internal directories.