New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@douglasgabr/cypher-builder

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@douglasgabr/cypher-builder - npm Package Versions

1

3.2.0

Diff

Changelog

Source

3.2.0 / 2022-01-06

  • feat(clauses): add function predicates to where clause
    import { Builder } from '@douglasgabr/cypher-builder';
    new Builder().where((w) => {
      w.andAll('item', 'list', (w) => w.and('item', '>', 0))
        .andExists('other')
        .orExists((p) => p.node('n1').relationship().node('n2'));
    });
    // WHERE all(item IN list WHERE item > $item)
    //   AND exists(other)
    //   OR exists((n1)--(n2))
    // $item => 0
    
douglasgabr
published 3.1.0 •

Changelog

Source

3.1.0 / 2021-10-23

  • feat(clauses): add create clause
    import { Builder } from '@douglasgabr/cypher-builder';
    new Builder().create((c) => c.node('user', 'User'));
    // CREATE (user:User)
    
douglasgabr
published 3.0.0 •

Changelog

Source

3.0.0 / 2021-10-10

  • 💥 BREAKING CHANGE: where clause ...Literal methods removed.
  • feat: add literal utility
    import { Builder, literal } from '@douglasgabr/cypher-builder';
    new Builder()
      .match((m) => m.node('user', 'User', { id: literal('literal.id') }))
      .where((w) => w.and('user.name', literal('friend.name')));
    // MATCH (user:User{ id: literal.id })
    // WHERE user.name = friend.name
    
douglasgabr
published 2.2.0 •

Changelog

Source

2.2.0 / 2021-10-09

  • feat: only add clauses to builder if needed
    const filter = { name: '' }; // empty filter
    new Builder()
      .match((m) => m.node('person'))
      .where((w) => {
        if (filter.name) {
          // will not execute
          w.and('person.name', filter.name);
        }
      })
      .return('person')
      .build();
    // MATCH (person)
    // RETURN person
    
douglasgabr
published 2.1.0 •

Changelog

Source

2.1.0 / 2021-10-09

  • fix(patterns): don't add brackets to empty relationship patterns (.relationship())

    • before: -[]-
    • after: --
  • feat(clauses): add label predicates to where:

    new Builder()
      .where((w) => {
        w.andLabel('user', 'User').andLabel('admin', ['User', 'Admin']);
      })
      .build();
    // WHERE user:User AND admin:User:Admin
    
douglasgabr
published 2.0.0 •

Changelog

Source

2.0.0 / 2021-10-07

  • 💥 BREAKING CHANGE: RelationshipDirection is now just a string union, so previous usages as an enum must be updated
  • chore: rename some order by types and export them in the index file
douglasgabr
published 1.2.0 •

Changelog

Source

1.2.0 / 2021-10-07

  • feat: add delete and detachDelete to builder
douglasgabr
published 1.1.0 •

Changelog

Source

1.1.0 / 2021-10-06

  • feat: add orderBy to builder
  • chore: start inline documentation
douglasgabr
published 1.0.0 •

Changelog

Source

1.0.0 / 2021-10-04

  • Initial Release
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc