问题标签 [node-neo4j]

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.

0 投票
1 回答
605 浏览

node.js - 如何使用 Neo4j 驱动程序按需中止查询

我正在使用 Node.js 和 Neo4j 制作一个搜索引擎应用程序,它允许用户通过基于 Web 的用户界面提交图形遍历查询。我想让用户选择在提交后取消查询(即,如果用户决定更改查询参数)。因此,我需要一种方法来使用来自 Node.js-to-Neo4j 驱动程序的命令或通过 Cypher 查询来中止查询。

经过几个小时的搜索,我找不到使用任何 Node.js-to-Neo4j 驱动程序的方法。我似乎也找不到允许终止查询的密码查询。我是否忽略了某些东西,或者这对 Neo4j 来说是不可能的?我目前使用的是 Neo4j 2.0.4,但如果它具有查询查杀功能,我愿意升级到更新版本的 Neo4j。

0 投票
2 回答
143 浏览

neo4j - 目的 # has no method 'http' when using neo4j and bluebird

I am using this Neo4J library and I would like to use promises instead. So I tried using b

I am using this Neo4J library and I would like to use promises instead. So I tried using bluebird's promisify. I created the following code...

However, now I get the following error that is captured onError...

TypeError: Object # has no method 'http'

This version works fine...

A little more investigation shows that it is blowing up on this code...


Laravel 5 CMS making?

I'm trying to build a simple CMS with Laravel 5 and I'm stopped at this:

Category forums duplicating

Category titles are ok, but inside same (dublicating forums)? Why is it? My code:

In routes:

In PhpMyAdmin:

categories: categories table

forums: forums table

I know that I didn't do something, but I don't know what, I'm a newbie with Laravel. P.S I'm not good in english, sorry for my bad language :) Thanks so much in advance ;)

Shortly: I wan't to show the forum in that category which is written in in_category row. Thanks.

0 投票
1 回答
57 浏览

node.js - 为什么 Node-Neo4j 没有正确设置数据?

想象一下这样的查询:

如果集合发生在同一事务中,Neo4j 保证写锁,这由 node-neo4j 中的同一查询暗示。但是,我得到以下输出:

据我了解,锁应该防止index相同。我在这里错过了什么吗?我该如何解决这个问题?

0 投票
2 回答
910 浏览

node.js - Cypher 查询不适用于 node.js,但适用于 neo4j 控制台

我正在尝试使用该node-neo4j模块编写一个与 neo4j 一起使用的 node.js 应用程序。我正在尝试从 提交查询nodejs,但发现它不起作用,所以我尝试从 提交它neo4j browser console,以便更容易地从根本上导致我的错字,并发现它在那里正常工作。关于发生了什么的任何想法?

查询:

0 投票
1 回答
498 浏览

neo4j - Sails Neo4J 与sails-neo4J 建立关系

我对sailsJS 和Neo4J 很陌生,我的障碍是在两个具有参考ID 的节点之间创建关系。

我的代码示例:

我的输出是:

即使那样,在 Neo4J 上创建关系也没有任何问题,我无法在这个框架上进行调试。任何人都可以帮助我在这些之间没有建立关系的根本原因是什么。

0 投票
1 回答
405 浏览

node.js - Neo4j 将数组值与节点属性匹配

我正在尝试使用此查询

它被视为(?i).*name.*静态文本而不是来自name IN ['ACB','xYz'].

0 投票
2 回答
212 浏览

neo4j - graphenedb_url 连接错误

我的 graphebedb_url 是从 heroku 获得的,用于在线访问我的 neo4j 数据库。这是正确的,但是当我启动数据库连接时。它返回错误 403。这是禁止请求。

0 投票
1 回答
38 浏览

node.js - 查询执行后检测到合并创建的节点,不匹配

简单的问题,我很难用谷歌搜索。使用cyphervia node-neo4j,我想在查询后运行一些逻辑,但前提是我MERGE创建的节点(即ON CREATE内部查询被触发),不匹配它。我怎样才能做到这一点?

0 投票
1 回答
138 浏览

node.js - node-neo4j 中的简单读取操作出错

错误:

0 投票
0 回答
639 浏览

javascript - Neo4j Cypher:真正的布尔值被识别为字符串

在我的应用程序中,为了更改节点的可见性,我定义了一个is_full_show参数,它采用trueor false。我有一个updateNodeEntity()功能可以在需要时更改其他参数值。以下是我在updateNodeEntity()函数中的 Cypher 查询的一部分:

当我运行查询时,我可以看到参数已成功更改。但是,布尔值n.is_full_show=true变成了一个字符串n.is_full_show="true",我的节点没有出现在我的应用程序中。有关更详细的描述,以下是来自控制台的请求负载:

和回应:

我尝试了许多选项,例如return true函数、正则表达式等。但无法修复它。任何帮助/建议将不胜感激。谢谢。