@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.js
CHANGED
|
@@ -2184,15 +2184,8 @@ var CosmosDbProvider = class {
|
|
|
2184
2184
|
return this.track("executeNativeQuery", void 0, () => this.executeNativeQueryImpl(query, params));
|
|
2185
2185
|
}
|
|
2186
2186
|
async executeNativeQueryImpl(query, params) {
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
return result.items;
|
|
2190
|
-
} catch (err) {
|
|
2191
|
-
throw new ProviderError(
|
|
2192
|
-
`Native Gremlin query failed: ${err instanceof Error ? err.message : String(err)}`,
|
|
2193
|
-
"Verify the Gremlin query syntax is valid for CosmosDB."
|
|
2194
|
-
);
|
|
2195
|
-
}
|
|
2187
|
+
const result = await this.conn.submit(query, params);
|
|
2188
|
+
return result.items;
|
|
2196
2189
|
}
|
|
2197
2190
|
};
|
|
2198
2191
|
function unwrapGremlinValue(val) {
|