lucianopalmeida / ogmneo Goto Github PK
View Code? Open in Web Editor NEW[No Maintenance] Neo4j nodeJS OGM(object-graph mapping) abstraction layer
License: MIT License
[No Maintenance] Neo4j nodeJS OGM(object-graph mapping) abstraction layer
License: MIT License
Hi, thanks for the great package. The docs link is returning a 404 at the moment.
Hi!
I'm using this great library to manage a neo4j database in version 4.0.
When I make a create (node) and pass a javascript object, it always gives a syntax error. I understand that it is not adapted to this version, because I am using the latest version (1.0.6). Is it like that or is it a bug in the library?
ogmneo.Node.create(entityToDB, 'Entity') .then((node) => node ).catch((error) => { //Handle error console.error(error) });
Neo4jError: The old parameter syntax
{param}is no longer supported. Please use
$param instead (line 1, column 28 (offset: 27)) "CREATE (n:Entity { name : {name}, description : {description}, type : {type }) RETURN n"
Thank you so much!!
The ogmneo.Node.delete deletes only the nodes that don't have relations. The proposal is add a delete that optionally also deletes the relations in a cascade way :)
how to fetch node and these relations.
Hi, the docs link just goes to a folder of HTML files, is it possible to host that for free somehow?
Maybe we have some english grammar to fix on the comments Docs that can be improved.
I cannot find execute function in ogmneo.Cypher.
when did you update it?
Having a merge function for nodes and relationships would help for carrying out creating unique nodes/relations.
We are getting a lot of "ECONNRESET" errors. So I wanted to create this issue so that we can get someone can help. I am not sure whether this is neo4j itself or this ORM library.
Neo4jError: read ECONNRESET\n\n at captureStacktrace (/var/neo4j-sample-app/node_modules/neo4j-driver/lib/v1/result.js:200:15)\n at new Result (/var/neo4j-sample-app/node_modules/neo4j-driver/lib/v1/result.js:73:19)\n at _newRunResult (/var/neo4j-sample-app/node_modules/neo4j-driver/lib/v1/transaction.js:348:10)\n at Object.run (/var/neo4j-sample-app/node_modules/neo4j-driver/lib/v1/transaction.js:259:14)\n at Transaction.run (/var/neo4j-sample-app/node_modules/neo4j-driver/lib/v1/transaction.js:103:26)\n at Function.runInTransaction (/var/neo4j-sample-app/node_modules/ogmneo/lib/ogmneo-operation-executer.js:154:32)\n at session.readTransaction (/var/neo4j-sample-app/node_modules/ogmneo/lib/ogmneo-operation-executer.js:129:40)\n at TransactionExecutor._executeTransactionInsidePromise (/var/neo4j-sample-app/node_modules/neo4j-driver/lib/v1/internal/transaction-executor.js:115:37)\n at /var/neo4j-sample-app/node_modules/neo4j-driver/lib/v1/internal/transaction-executor.js:67:15\n at new Promise ()\n at new F (/var/neo4j-sample-app/node_modules/core-js/library/modules/_export.js:36:28)\n at TransactionExecutor.execute (/var/neo4j-sample-app/node_modules/neo4j-driver/lib/v1/internal/transaction-executor.js:66:14)\n at Session._runTransaction (/var/neo4j-sample-app/node_modules/neo4j-driver/lib/v1/session.js:214:40)\n at Session.readTransaction (/var/neo4j-sample-app/node_modules/neo4j-driver/lib/v1/session.js:187:19)\n at Promise (/var/neo4j-sample-app/node_modules/ogmneo/lib/ogmneo-operation-executer.js:128:25)\n at new Promise ()\n at Function._executeRead (/var/neo4j-sample-app/node_modules/ogmneo/lib/ogmneo-operation-executer.js:122:16)\n at Function.execute (/var/neo4j-sample-app/node_modules/ogmneo/lib/ogmneo-operation-executer.js:110:29)\n at OGMNeoModel.findOne (/var/neo4j-sample-app/src/api/ogm-neo/ogmneo-model.js:399:44)\n at OAuthAccessTokenManager.findOne (/var/neo4j-sample-app/src/api/managers/BaseManager.js:242:27)\n at onJwtBearerStrategyAuth (/var/neo4j-sample-app/src/config/passport.js:102:52)\n at /var/neo4j-sample-app/node_modules/passport-http-jwt-bearer/lib/strategy.js:99:11
This is running on the environment below:
NodeJS v8.9.3
Neo4J v3.4.0
neo4j-driver v1.6.2
The app is running on a Docker container with Centos 7
There are some issues have been raised in the neo4j driver but we still not figure out the root cause and resolution
philippkueng/node-neo4j#43
neo4j/neo4j-javascript-driver#126
How to use operators like IN
or DISTINCT
?
The only one I've found in the docs was $eq
.
Is that possible to allow specify config parameter when initiating driver instance likes below code sample
const driver = neo4j.driver(url, neo4j.auth.basic(user, pwd), {
encrypted: false
});
Thanks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.