Security News
ESLint is Now Language-Agnostic: Linting JSON, Markdown, and Beyond
ESLint has added JSON and Markdown linting support with new officially-supported plugins, expanding its versatility beyond JavaScript.
falkordb
is a FalkorDB client for Node.js.
Start a falkordb via docker:
docker run -p 6379:6379 -it falkordb/falkordb:latest
To install node falkordb, simply:
npm install falkordb
import { FalkorDB } from 'falkordb';
const db = await FalkorDB.connect({
username: 'myUsername',
password: 'myPassword',
socket: {
host: 'localhost',
port: 6379
}
})
console.log('Connected to FalkorDB')
const graph = db.selectGraph('myGraph')
await graph.query(`CREATE (:Rider {name:'Valentino Rossi'})-[:rides]->(:Team {name:'Yamaha'}),
(:Rider {name:'Dani Pedrosa'})-[:rides]->(:Team {name:'Honda'}),
(:Rider {name:'Andrea Dovizioso'})-[:rides]->(:Team {name:'Ducati'})`)
result = await graph.query(`MATCH (r:Rider)-[:rides]->(t:Team)
WHERE t.name = $name RETURN r.name`,
{params: {name: 'Yamaha'}})
console.log(result) // Valentino Rossi
console.log(await db.list())
console.log(await db.info())
db.close()
To learn more about Cypher query language check: https://docs.falkordb.com/cypher/
.close()
Forcibly close a client's connection to FalkorDB immediately. Calling close
will not send further pending commands to the Redis server, or wait for or parse outstanding responses.
await client.close();
This repository is licensed under the "MIT" license. See LICENSE.
FAQs
A FalkorDB javascript library
We found that falkordb demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
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.
Security News
ESLint has added JSON and Markdown linting support with new officially-supported plugins, expanding its versatility beyond JavaScript.
Security News
Members Hub is conducting large-scale campaigns to artificially boost Discord server metrics, undermining community trust and platform integrity.
Security News
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.