@redis/graph
Last updated 3 years ago by leibale .
MIT · Original npm · Tarball · package.json
$ npm install @redis/graph 
SYNC missed versions from official npm registry.

@redis/graph

Example usage:

import { createClient, Graph } from 'redis';

const client = createClient();
client.on('error', (err) => console.log('Redis Client Error', err));

await client.connect();

const graph = new Graph(client, 'graph');

await graph.query(
  'CREATE (:Rider { name: $riderName })-[:rides]->(:Team { name: $teamName })',
  {
    params: {
      riderName: 'Buzz Aldrin',
      teamName: 'Apollo'
    }
  }
);

const result = await graph.roQuery(
  'MATCH (r:Rider)-[:rides]->(t:Team { name: $name }) RETURN r.name AS name',
  {
    params: {
      name: 'Apollo'
    }
  }
);

console.log(result.data); // [{ name: 'Buzz Aldrin' }]

Current Tags

  • 1.1.1                                ...           latest (a year ago)
  • 5.0.0-next.5                                ...           next (2 months ago)

6 Versions

  • 5.0.0-next.5                                ...           2 months ago
  • 1.1.1                                ...           a year ago
  • 2.0.0-next.2                                ...           a year ago
  • 2.0.0-next.1                                ...           a year ago
  • 1.1.0                                ...           2 years ago
  • 1.0.1                                ...           3 years ago
Maintainers (1)
Downloads
Total 5
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (9)
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE