graphmind-sdk 0.6.5 → 0.7.0

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.
@@ -51,6 +51,8 @@ export declare class GraphmindClient {
51
51
  listGraphs(): Promise<string[]>;
52
52
  /** Get server status */
53
53
  status(graph?: string): Promise<ServerStatus>;
54
+ /** Get the database server version */
55
+ version(): Promise<string>;
54
56
  /** Get graph schema (node types, edge types, indexes, constraints, statistics) */
55
57
  schema(graph?: string): Promise<GraphSchema>;
56
58
  /**
@@ -83,6 +83,11 @@ export class GraphmindClient {
83
83
  async status(graph) {
84
84
  return this.http.status(graph || this.defaultGraph);
85
85
  }
86
+ /** Get the database server version */
87
+ async version() {
88
+ const s = await this.status();
89
+ return s.version;
90
+ }
86
91
  /** Get graph schema (node types, edge types, indexes, constraints, statistics) */
87
92
  async schema(graph) {
88
93
  return this.http.schema(graph || this.defaultGraph);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "graphmind-sdk",
3
- "version": "0.6.5",
3
+ "version": "0.7.0",
4
4
  "description": "TypeScript SDK for the Graphmind Graph Database",
5
5
  "type": "module",
6
6
  "main": "dist/src/index.js",