我創建兩個文件之間的邊緣「has_taken」如下:ArangoDB - 集合未找到錯誤,雖然集合是創建
sin_graph.createEdge("has_taken", userDoc._id, tripDoc._id, edgeAttributes={})
而且我收到以下錯誤:
File "/Library/Python/2.7/site-packages/pyArango/graph.py", line 135, in createEdge raise CreationError("Unable to create edge, %s" % r.json()["errorMessage"], data) CreationError: Unable to create edge, collection not found. Errors: {u'code': 404, u'errorNum': 1203, u'errorMessage': u'collection not found', u'error': True}
名稱爲「has_taken」的集合存在,但我收到上述錯誤。
你能寫更多的細節嗎?你從哪裏得到'sin_graph'? –
我用下面的命令我圖 sin_graph = db.graphs [「Graph_name」] 我創建使用arangoDB –
的GUI你確定你使用了正確的DB這個圖?而不是_system> –