问题标签 [neo4jclient]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
relationship - Neo4jClient - Retrieving relationship from Cypher query
I'm having trouble retrieving matched relationships from a Cypher query.
I have this simple trial code:
Problem is that I can't work out how to cast the r (with the matched relationship).
Tried various ".As" type casts, but none work. Casting to Relationship doesn't work because my relationship class doesn't have a parameterless constructor - but then the Relationship base class doesn't have a parameterless constructor itself, so don't think that would work. Casting to RelationshipReference on the other hand causes an exception. Not casting at all (just returning r) causes a "not supported" exception.
There are some related SO entries about this issue, but the suggested code there either no longer works or is deprecated.
How do I retrieve the matched relationship?
neo4j - 使用 Neo4jClient 动态创建 neo4j 节点
我有一个节点的基类:
让我的其他节点类像这样
还有许多其他类Item
,比如代表不同节点类型的类,我将如何创建一个传递节点类型的方法,然后该方法创建该特定节点?
neo4j - 在 Neo4jClient 中使用“And”作为密码
我有一个如下所示的密码查询:
如果名称是 Mike 并且职业是开发人员,这将返回与根节点相关的所有节点。
现在如何在 C# 中执行“And x.Occupation”?
neo4j - 在同一网络上的另一台计算机上连接到 neo4j?
我们在这里有一个本地网络,在我们安装了 neo4j 服务器的一台计算机上。现在进行测试,我想从同一网络上的计算机访问它。我正在努力这样做吗?
我是否在 neo4j-server.properties 文件中执行任何操作?
我会在我的代码中输出什么来从那台机器访问它?
我可以这样做吗?
neo4j - 如何使用 Neo4jclient 保存一个空数组属性
我正在使用 neo4jclient,我的一个数据类有一个Collection<string>
属性。
保存时,我收到以下错误:
“无法将属性 'SomeArrayPropertyName' 设置为空数组,因为其中没有任何类型的值,也没有预先存在的集合来推断类型,因此无法确定要存储的数组类型。 "
有没有办法保存一个空数组而不将其更改为 Null ?
编辑:
例子:
c# - 使用 Neo4j、Neo4jPHP 和 Neo4jClient 在 PHP 和 C# 之间共享日期时间
我正在编写一个数据导入脚本,用于从 PHP 收集一些带有日期的数据,并且我正在使用 Neo4jPHP 将结果写入 Neo4j。但是,我不确定如何在 PHP 中将日期时间对象表示为DateTimeOffset
可以通过 C#.NET 端的 Neo4jClient 读取的序列化。
在 C#.NET 中使用 Neo4jClient 序列化 DateTimeOffset 时,它在 Neo4j 中的内部格式如下所示:
"2013-07-12T13:06:44.3940861+00:00"
根据http://msdn.microsoft.com/en-us/library/8kb3ddd4.aspx上的文档,上述日期时间字符串可以分为以下几部分:
"yyyy-MM-ddThh:mm:ss.FFFFFFFzzz"
我看到 PHP date() 函数不支持微秒,但 DateTime::format() 支持。我不是 PHP 专家,所以我不确定进行转换的最佳方法。我不只是在寻找 PHP 完整的日期/时间,因为 C# DateTimeOffset 支持微秒。我将如何在 PHP 中实现上述日期格式?
neo4jclient - 在 Neo4jClient 中动态创建查询
我正在尝试使用 Neo4jClient 创建动态 Cypher 查询。由于 Neo4jClient 中的 .Start,我的代码变得非常多余。在.Start 中,我想从索引中获取节点。节点可以在 1 到 10 之间变化。所以我必须创建一个 switch 语句,它变得非常长。
对于两个节点,它是
等等
.Match 和 .With 是使用字符串操作动态生成的,所以没有问题。.Return 只有有限的返回值,所以也没有问题。
我主要担心的是由于 .Start,我必须重复完整的 .Cypher 语句。如果我能绕过它,我将有漂亮干净的代码。有什么建议么?
neo4j - Neo4j Create Unique using params 使用 WithParams 创建节点
我最初在这里发布http://hg.readify.net/neo4jclient/issue/122/createunique-withparam-object
我正在运行 neo4j 1.9.1 和 neo4jclient 1.0.0.590
继这个问题 http://hg.readify.net/neo4jclient/issue/66/support-custom-parameters-in-cypher-fluent
我正在尝试重用该语法来创建唯一的关系和具有属性的节点
当我询问结果时,这是提琴手的一些结果
邮政
}
回复
}
我已手动获取查询文本并删除了关键引号并使其成功运行
我在这里做错了吗?
谢谢!
neo4j - 在 Neo4jClient Cypher 查询中一起返回属性和计数列
我有一个像这样的 Cypher 查询:
当我尝试使用 Neo4jClient Cypher Query 执行此操作时出现错误
如果只需要返回一个属性或一个计数,我们可以使用
但是如何归还财产并一起计算呢?
neo4jclient - neo4jclient 格式错误的密码请求发送到服务器
尝试执行以下密码查询(从 neoclipse 执行 ok)
来自neo4jclient,带有以下语句
客户端抛出异常,如下
如您所见,基本上查询是相同的。我试图获得的节点是_type“Person”
TIA
马塞洛