0.1.4 • Published 5 years ago

neo4j-cypher-query-builder v0.1.4

Weekly downloads
5
License
GNU GPLv3
Repository
-
Last release
5 years ago

neo4j-cqb

Query builder for Cypher language

A flexible and intuitive query builder for Neo4j and Cypher. Write queries in Javascript just as you would write them in Cypher.

  • Easy to use
  • Full Typescript support

const query = Cypher.MATCH()
    .node(`:user`, {
        age: 30
    })
    .relation(`r:works_in`)
    .implicit()
    .node(`:company`, {
        founded_on: '2010-05-12'
    })
    .RETURN('r')
    .end();


/*  Result:
    MATCH (:user{age:30})-[r:works_in]-(:company{founded_on:"2010-05-12"})
    RETURN r
*/

Currently supported

Operators

  • CREATE
  • MATCH
  • INSERT
  • RETURN

Features

  • Operating with nodes
  • Operating with relations

Installation

yarn add -D neo4j-cqb

Contributing

Please feel free to submit any bugs or questions you may have in an issue. I'm very open to discussing suggestions or new ideas so don't hesitate to reach out.

Maintaining the library does take some time out of my schedule so if you'd like to show your appreciation please consider donating. Even the smallest amount is really encouraging.

0.1.4

5 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago