
Product
Introducing Tier 1 Reachability: Precision CVE Triage for Enterprise Teams
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
cayley-node
Advanced tools
Cayley graphdatabase client for node.
$ npm install cayley-node --save
You just need to copy the code of Gremlin!
var cayley = require('cayley-node');
var client = cayley("http://localhost:64210/");
var g = graph = client.graph;
// or
g = graph = client.g;
g.V().All(function(err, result) {
// get result
});
g.V().GetLimit(5, function(err, result) {});
g.V("Humphrey Bogart").In("name").All(function(err, result) {});
// And you can create Morphism in you javascript code
var filmToActor = g.Morphism().Out("/film/film/starring").Out("/film/performance/actor");
g.V().Has("name", "Casablanca").Follow(filmToActor).Out("name").All(function(err, result) {});
When you want to query shape, g.type('shape')
will return a new graph which return shape for query:
// to query shape
g = g.type('shape');
g.V().GetLimit(5, function(err, result) {
// shape will return
});
Also simple write/delete APIs are implemented:
var client = cayley("http://localhost:64210/");
client.write([{
subject: "Subject Node",
predicate: "Predicate Node",
object: "Object Node"
}], function(err, body, res) {
});
client.delete([{
subject: "Subject Node",
predicate: "Predicate Node",
object: "Object Node"
}], function(err, body, res) {
});
options will be passed to request, so you can add settings like proxy, headers.
MIT
FAQs
cayley graph database client node
We found that cayley-node demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
Research
/Security News
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.
Security News
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.