Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@neo4j-labs/experimental-query-api-wrapper

Package Overview
Dependencies
Maintainers
0
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@neo4j-labs/experimental-query-api-wrapper

Experimental wrapper library to access Neo4j Database using Query API with a neo4j-driver-like interface.

  • 0.0.1-alpha06
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3.7K
decreased by-7.32%
Maintainers
0
Weekly downloads
 
Created
Source

experimental-query-api-wrapper

⚠️ WARNING
This is an experiment which should not be used in production environments. Use in your own risk.

Experimental wrapper library to access Neo4j Query API using a neo4j-driver-like interface.

Quickstart

Requirements:

Node >= 18
Neo4j >= 5.23

Installation:

$ npm i @neo4j-labs/experimental-query-api-wrapper --save

Usage:

example.js

import neo4j from '@neo4j-labs/experimental-query-api-wrapper'

const wrapper = neo4j.wrapper('http://localhost:7474', neo4j.auth.basic('neo4j', 'password'))

const session = wrapper.session({ database: 'neo4j', defaultAccessMode: 'READ' })

try {
    const { records, summary } = await session.run('MATCH (p:Person) RETURN p')
    
    for (const record of records) {
        console.log('Person', record.get('p').properties)
    }

    console.log('Summary', summary)
} finally {
    await session.close()
    await wrapper.close()
}

Keywords

FAQs

Package last updated on 24 Oct 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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