Which web application framework is highly integrat

2019-04-10 02:25发布

I have been looking at Neo4j today and I find it exciting. I wonder if there is web application framework which is highly integrated with Neo4J? Basically I would like to start experimenting with Neo4J and I thought maybe there is obvious choice of web framework and if there is, I would like to try out that too. Do you know any?

8条回答
我欲成王,谁敢阻挡
2楼-- · 2019-04-10 03:02

Well I think with Cypher, any framework is quite easy to use, it's just one REST endpoint you need to hit. I have good experience with using Node.js, Neography/Ruby and of course JDBC over REST/Java.

查看更多
SAY GOODBYE
3楼-- · 2019-04-10 03:05

I would definitely check out the neo4j gem (disclaimer: I'm one of the maintainers). It offers a really rich way to access a neo4j database using ActiveNode and ActiveRel models. Not only can you do a lot of the basic things that you can do with a library like ActiveRecord, but you can easily perform deep queries that take advantage of the power of Neo4j like this:

# Find all blog posts written by people who have commented on the blog_post in question
blog_post.comments.author.posts

# Find the number of distinct students that the instructor in question
# has in common with other instructors
instructor.lessons.students(:student).lessons.
  instructor(:other_instructor).pluck(:other_instructor, 'count(DISTINCT student)')

Not only is this a really nice way to write cypher statements in Ruby, but you can also make a part of a query and pass it around to be built up in different places in different ways for DRY querying.

查看更多
登录 后发表回答