MCPcopy Create free account
hub / github.com/benwinding/react-admin-import-csv / IsIdColliding

Function IsIdColliding

src/import-controller.ts:60–68  ·  view source on GitHub ↗
(
  dataProvider: DataProvider,
  id: Identifier,
  resourceName: string,
)

Source from the content-addressed store, hash-verified

58}
59
60export async function IsIdColliding(
61 dataProvider: DataProvider,
62 id: Identifier,
63 resourceName: string,
64) {
65 return dataProvider.getOne(resourceName, {id})
66 .then(_ => id)
67 .catch(_ => undefined);
68}
69
70export async function GetIdsCollidingGetMany(
71 logging: boolean,

Callers 1

GetIdsCollidingGetSingleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected