mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-28 11:01:39 -05:00
add cross partition query
This commit is contained in:
@@ -87,7 +87,7 @@ function createOrUpdate(commit: string, quality: string, platform: string, type:
|
|||||||
updateTries++;
|
updateTries++;
|
||||||
|
|
||||||
return new Promise<void>((c, e) => {
|
return new Promise<void>((c, e) => {
|
||||||
client.queryDocuments(collection, updateQuery).toArray((err, results) => {
|
client.queryDocuments(collection, updateQuery, { enableCrossPartitionQuery: true }).toArray((err, results) => {
|
||||||
if (err) { return e(err); }
|
if (err) { return e(err); }
|
||||||
if (results.length !== 1) { return e(new Error('No documents')); }
|
if (results.length !== 1) { return e(new Error('No documents')); }
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user