我刚刚开始使用 neo4j 和 NeoEloquent,我无法获得与自己相关的节点的边缘(有一些重要信息)。
我像这样添加这个关系:
用户模式.php
public function getTech ()
{
return $this->belongsToMany(User::class, 'Conoce');
}
当我尝试像这样获得优势时:
dump(Auth::user()->getTech()->edge(Auth::user()->getTech[0]));
我收到此错误:类型错误:传递给 Vinelab\NeoEloquent\Eloquent\Edges\Finder::edgeFromRelationWithDirection() 的参数 1 必须是 Everyman\Neo4j\Relationship 的实例,给定布尔值,
谢谢指教!