func (s Service) UpsertNode(node HasUID, predicate string, object interface{}) (wasCreated bool, err error) {
	c := UpsertNode{
		Node: node,
	}
	c.InsertUnless(predicate, object)
	return c.Do(s.access)
}
// UpsertNode creates (insert) or updates a Node.
// The operation will update iff the predicate -> object.
// Return an error if the mutation fails.
// Requires a DGraphAccess with a Write transaction.
UpsertNode creates (insert) or updates a Node.
The operation will update iff the predicate -> object.
Return an error if the mutation fails.
Requires a DGraphAccess with a Write transaction.
// UpsertNode creates ( insert ) or updates a Node . // The operation will update iff the predicate - > object . // Return an error if the mutation fails . // Requires a DGraphAccess with a Write transaction .
func (s Service) UpsertNode(node HasUID, predicate string, object interface{}) (wasCreated bool, err error) {
	c := UpsertNode{
		Node: node,
	}
	c.InsertUnless(predicate, object)
	return c.Do(s.access)
}
func ( s Service ) UpsertNode ( node HasUID , predicate string , object interface { } ) ( wasCreated bool , err error ) { c := UpsertNode { Node : node , } c . InsertUnless ( predicate , object ) return c . Do ( s . access ) }
UpsertNode creates (insert) or updates a Node.
UpsertNode creates ( insert ) or updates a Node .