Skip to content

Commit

Permalink
fix: add missing edge attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
cybersiddhu committed Sep 24, 2018
1 parent 4785bbe commit c738ab1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions storage/arangodb/datasource.go
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ func (a *arangoSource) todbRelationhip(r graph.Relationship) (*dbRelationship, e
return dbr, err
}
oMap[r.Subject()] = id
dbr.From = id
dbr.To = id
}
if v, ok := oMap[r.Predicate()]; ok {
dbr.Predicate = v
Expand All @@ -298,7 +298,7 @@ func (a *arangoSource) getDocId(nid graph.NodeID) (string, error) {
var id string
query := manager.NewAqlStruct().
For("d", a.termc.Name()).
Filter("d", manager.Fil("id", "eq", string(nid))).
Filter("d", manager.Fil("id", "eq", string(nid)), true).
Return("d._id")
res, err := a.database.Get(query.Generate())
if err != nil {
Expand Down

0 comments on commit c738ab1

Please sign in to comment.