@synapcores/sdk 0.2.0 → 0.2.1
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.
- package/dist/index.d.mts +5 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +7 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1830,6 +1830,11 @@ declare class GraphClient {
|
|
|
1830
1830
|
constructor(synapCores: SynapCores);
|
|
1831
1831
|
/**
|
|
1832
1832
|
* Run a Cypher / MATCH query.
|
|
1833
|
+
*
|
|
1834
|
+
* The gateway's MatchRequest expects `sql: String` (see
|
|
1835
|
+
* crates/aidb-gateway/src/routes/graph.rs MatchRequest); we keep the
|
|
1836
|
+
* SDK-facing parameter named `query` because every caller writes
|
|
1837
|
+
* Cypher, not SQL — the gateway's field name is a historical artifact.
|
|
1833
1838
|
*/
|
|
1834
1839
|
cypher(query: string, params?: Record<string, any>, graph?: string): Promise<CypherResult>;
|
|
1835
1840
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -1830,6 +1830,11 @@ declare class GraphClient {
|
|
|
1830
1830
|
constructor(synapCores: SynapCores);
|
|
1831
1831
|
/**
|
|
1832
1832
|
* Run a Cypher / MATCH query.
|
|
1833
|
+
*
|
|
1834
|
+
* The gateway's MatchRequest expects `sql: String` (see
|
|
1835
|
+
* crates/aidb-gateway/src/routes/graph.rs MatchRequest); we keep the
|
|
1836
|
+
* SDK-facing parameter named `query` because every caller writes
|
|
1837
|
+
* Cypher, not SQL — the gateway's field name is a historical artifact.
|
|
1833
1838
|
*/
|
|
1834
1839
|
cypher(query: string, params?: Record<string, any>, graph?: string): Promise<CypherResult>;
|
|
1835
1840
|
/**
|
package/dist/index.js
CHANGED
|
@@ -2037,10 +2037,15 @@ var GraphClient = class {
|
|
|
2037
2037
|
}
|
|
2038
2038
|
/**
|
|
2039
2039
|
* Run a Cypher / MATCH query.
|
|
2040
|
+
*
|
|
2041
|
+
* The gateway's MatchRequest expects `sql: String` (see
|
|
2042
|
+
* crates/aidb-gateway/src/routes/graph.rs MatchRequest); we keep the
|
|
2043
|
+
* SDK-facing parameter named `query` because every caller writes
|
|
2044
|
+
* Cypher, not SQL — the gateway's field name is a historical artifact.
|
|
2040
2045
|
*/
|
|
2041
2046
|
async cypher(query, params = {}, graph) {
|
|
2042
2047
|
const { data } = await this.synapCores._getHttpClient().post("/graph/match", {
|
|
2043
|
-
query,
|
|
2048
|
+
sql: query,
|
|
2044
2049
|
params,
|
|
2045
2050
|
graph
|
|
2046
2051
|
});
|
|
@@ -2051,7 +2056,7 @@ var GraphClient = class {
|
|
|
2051
2056
|
*/
|
|
2052
2057
|
async cypherProfile(query, params = {}, graph) {
|
|
2053
2058
|
const { data } = await this.synapCores._getHttpClient().post("/graph/match/profile", {
|
|
2054
|
-
query,
|
|
2059
|
+
sql: query,
|
|
2055
2060
|
params,
|
|
2056
2061
|
graph
|
|
2057
2062
|
});
|