neo4-js / neo4-js Goto Github PK
View Code? Open in Web Editor NEWNeo4-js is a object-graph mapper for JavaScript and neo4j with full flow-type support.
Home Page: https://neo4.js.org
License: MIT License
Neo4-js is a object-graph mapper for JavaScript and neo4j with full flow-type support.
Home Page: https://neo4.js.org
License: MIT License
Possibly by renaming some concepts (connect
) and tweaking how relationships are created. See #8.
Getting this when trying to require neo4js. Accoding to this, you need to compile async/await code with babel-polyfill
.
Rather than making every potential user setup and use babel to use this, couldn't you just run babel as a pre publish step (or something manual even), so that it's more user friendly? I mean, I like babel and all, but I don't want to have to use babel to compile someone else's project, especially as my target environment for this is node where preprocessing js is sort of a weird thing people don't really do much of. Ideally, I would just npm install
and then require
, and it would just work. I'm only opening this issue because I'm not especially satisfied with the state of neo4j wrappers in the javascript world, and this one looks promising, but if I have to jump through hoops to use it, the answer is going to be "no."
I tried the HasOne relation
https://neo4.js.org/docs/relations.html
Created the instances. Once the user instance was created i tried by finding the user and then adding the project. I am stuck here. Not able to add the user and project relations.
const user: UserInstance = await User.findByGuid(data.createdBy);
const project: ProjectInstance = await Project.create({ ...data });
const result = await project.user.add(user);
I get the following error
Cannot read property 'add' of undefined
I am trying to make this work with nestjs
More of a question than an issue . . .
I'm not using flow, so I'm looking at the without-flow example, but I won't have access to decorators, as node doesn't support them (and I don't want to transpile server side code with babel). How do I call @model(User)
without using decorators? I tried looking at the generated code, but babel transpiling is always hard to follow.
I've done just a cursory search on Google, and I'll keep looking, but if you happen to know offhand what that looks like in es2015 code, let me know.
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.