
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
@neo4j/cypher-builder
Advanced tools
Cypher Builder is a JavaScript programmatic API to create Cypher queries for Neo4j.
import Cypher from "@neo4j/cypher-builder";
const movieNode = new Cypher.Node();
const pattern = new Cypher.Pattern(movieNode, { labels: ["Movie"] });
const matchQuery = new Cypher.Match(pattern)
.where(movieNode, {
title: new Cypher.Param("The Matrix"),
})
.return(movieNode.property("title"));
const { cypher, params } = matchQuery.build();
console.log(cypher);
console.log(params);
Cypher
MATCH (this0:Movie)
WHERE this0.title = $param0
RETURN this0.title
Params
{
"param0": "The Matrix",
}
See our contributing guide for development instructions.
You can find usage examples in the examples folder.
This library is for JavaScript and TypeScript only. If you are using Java, check Neo4j Cypher DSL.
2.8.0
#559 137a908
Thanks @angrykoala! - Support for dynamic labels in patterns
const query = new Cypher.Match(
new Cypher.Pattern(new Cypher.Node(), {
labels: new Cypher.Param("Movie"),
})
);
MATCH (this0:$($param0))
#559 0223ca9
Thanks @angrykoala! - Add support for dynamic types in patterns
const query = new Cypher.Match(
new Cypher.Pattern(new Cypher.Node())
.related({
type: new Cypher.Param("ACTED_IN"),
})
.to()
);
MATCH (this0)-[:$($param1)]->()
83774e8
Thanks @angrykoala! - Deprecates the option labelOperator
, this option only exists for compatibility with Cypher 4 and is no longer relevant for Cypher 5 or 25FAQs
A programmatic API for building Cypher queries for Neo4j
The npm package @neo4j/cypher-builder receives a total of 18,784 weekly downloads. As such, @neo4j/cypher-builder popularity was classified as popular.
We found that @neo4j/cypher-builder demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 6 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
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.