Code Monkey home page Code Monkey logo

Comments (5)

bretcope avatar bretcope commented on June 9, 2024

Not currently, although I can definitely see the benefit in adding direct support for them. I'll leave this issue open until that happens.

In the meantime, you can always use cypher queries to do virtually anything, including adding labels, label indexes, searches, etc. And in that sense, the library should have full support.

from neo4j-js.

bretcope avatar bretcope commented on June 9, 2024

Wanted this conversation to be in public rather than via email:

From: sebastien stettler Tue, 29 Oct 2013 16:57 UTC
Hi Bret

i would like to add the functionality requested on this issue

https://github.com/bretcope/neo4j-js/issues/7

i was wondering how the _endpoints variable in Neo4jAPI.js gets populated

_endpoints is populated via calls to createEndpoint() inside reconnect(). The REST service root returns a list of endpoints which are used later. It's unlikely you should need to use that variable directly.

As far as labels, if you want to be able to add labels at the time you create a node, there is no rest endpoint for that currently. You'll have to build a cypher query if you want that functionality. If you want to manage labels on an existing node, the node itself will have the endpoint as this._obj.labels. Here's an example of how to use an endpoint of that style.

It's somewhat non-trivial to integrate labels into this library, but it could certainly be done. When you have a spec, for what functions you would like to add change, you should post them here so I, and potentially others, can give input on it.

from neo4j-js.

billybonks avatar billybonks commented on June 9, 2024

I was thinking of adding this rest method http://docs.neo4j.org/chunked/preview/rest-api-node-labels.html ,

from neo4j-js.

anatolyg avatar anatolyg commented on June 9, 2024

any word on this?

from neo4j-js.

bretcope avatar bretcope commented on June 9, 2024

To be perfectly honest, I've essentially abandoned this project. I don't have any active projects using Neo4j, and my time to invest in this has virtually dropped to zero. I also feel like there were some choices I made when writing this library which I no longer agree with. If I were using neo4j now, I would base almost everything around cypher queries instead of trying to emulate the REST API. Cypher is so much more expressive and powerful.

If there is anyone who wants to take over maintenance, I would be happy to give collaborator status to one or more people. Otherwise I'll eventually just add a deprecation notice to the library.

from neo4j-js.

Related Issues (20)

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.