mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-04-14 13:47:33 +01:00
15 lines
416 B
TypeScript
15 lines
416 B
TypeScript
import { ConflictDefinition, FeedOptions, QueryIterator, Resource } from "@azure/cosmos";
|
|
import { client } from "../CosmosClient";
|
|
|
|
export const queryConflicts = (
|
|
databaseId: string,
|
|
containerId: string,
|
|
query: string,
|
|
options: FeedOptions
|
|
): QueryIterator<ConflictDefinition & Resource> => {
|
|
return client()
|
|
.database(databaseId)
|
|
.container(containerId)
|
|
.conflicts.query(query, options);
|
|
};
|