@utaba/deep-memory-storage-cosmosdb 0.14.0 → 0.15.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.
- package/dist/index.cjs +2 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -9
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -2221,15 +2221,8 @@ var CosmosDbProvider = class {
|
|
|
2221
2221
|
return this.track("executeNativeQuery", void 0, () => this.executeNativeQueryImpl(query, params));
|
|
2222
2222
|
}
|
|
2223
2223
|
async executeNativeQueryImpl(query, params) {
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
return result.items;
|
|
2227
|
-
} catch (err) {
|
|
2228
|
-
throw new import_deep_memory6.ProviderError(
|
|
2229
|
-
`Native Gremlin query failed: ${err instanceof Error ? err.message : String(err)}`,
|
|
2230
|
-
"Verify the Gremlin query syntax is valid for CosmosDB."
|
|
2231
|
-
);
|
|
2232
|
-
}
|
|
2224
|
+
const result = await this.conn.submit(query, params);
|
|
2225
|
+
return result.items;
|
|
2233
2226
|
}
|
|
2234
2227
|
};
|
|
2235
2228
|
function unwrapGremlinValue(val) {
|