Giter VIP home page Giter VIP logo

neo4-js's People

Contributors

janpeter avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

n-pliashko

neo4-js's Issues

Need help understanding this example

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.

Document that it's pre-compiled on npm/yarn

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."

Not able to create relation when using find to get instance

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.