mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-03-13 13:25:31 +00:00
12 lines
401 B
TypeScript
12 lines
401 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);
|
|
};
|