graphmind-sdk 0.6.3 → 0.6.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +7 -3
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -15,9 +15,13 @@ import { GraphmindClient } from 'graphmind-sdk';
15
15
 
16
16
  const client = new GraphmindClient({ url: 'http://localhost:8080' });
17
17
 
18
- // Create data
19
- await client.query('CREATE (a:Person {name: "Alice", age: 30})');
20
- await client.query('CREATE (b:Person {name: "Bob", age: 25})');
18
+ // Create data (semicolons separate multiple statements)
19
+ await client.query(`
20
+ CREATE (a:Person {name: "Alice", age: 30});
21
+ CREATE (b:Person {name: "Bob", age: 25});
22
+ MATCH (a:Person {name: "Alice"}), (b:Person {name: "Bob"})
23
+ CREATE (a)-[:KNOWS]->(b)
24
+ `);
21
25
 
22
26
  // Query
23
27
  const result = await client.query('MATCH (n:Person) RETURN n.name, n.age');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "graphmind-sdk",
3
- "version": "0.6.3",
3
+ "version": "0.6.4",
4
4
  "description": "TypeScript SDK for the Graphmind Graph Database",
5
5
  "type": "module",
6
6
  "main": "dist/src/index.js",