🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

neo4j-data

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

neo4j-data

Based on neo4j-driver , includes : gain data , library connect , library config, serialize data etc.

latest
Source
npmnpm
Version
1.2.4
Version published
Weekly downloads
21
600%
Maintainers
1
Weekly downloads
 
Created
Source

引入方式

支持 ES module

import neo4jData from "neo4j-data"

支持CJS

var neo4jData = require("neo4jData");

支持AMD

require(['neo4j-data'],function(neo4j-data){
   ...
   ...
   ...
})
<script src="https://unpkg.com/neo4j-data"></script>

使用实例


import neo4jData from "neo4j-data"


const neo4j = new neo4jData();
<!-- 初始化配置 -->
neo4j.config({
    url : '填入url',
    username : '填入用户名',
    password : '填入密码'
})
<!-- 运行match语句 -->
neo4j.runMatch(
      "需要执行的MATCH语句"
      )
     .then(result=>{
         <!-- 对结果进行处理  -->
         let info = neo4j.dataDetail(result.records);
         neo4j.close();
})

处理后数据结构

{
    
nodes: [{…}, {…}, {…}, {…}, {…}, {…}, {…}],
nodesMap: {239979: {…}, 263732: {…}, 441610: {…}, 458585: {…}, 459032: {…}, 481273: {…}, 482247: {…}},
relationships: [{…}, {…}, {…}, {…}, {…}, {…}, {…}],
relationshipsMap:  {239979: {…}, 263732: {…}, 441610: {…}, 458585: {…}, 459032: {…}, 481273: {…}, 482247: {…}},
}

Keywords

neo4j

FAQs

Package last updated on 17 Oct 2019

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