MCPcopy Create free account
hub / github.com/clientdb/clientdb / update

Function update

core/client.ts:175–181  ·  view source on GitHub ↗
(id, input)

Source from the content-addressed store, hash-verified

173 });
174 },
175 update(id, input) {
176 return runInAction(() => {
177 const updateEvent = store.update(id, input);
178 events.emit("updated", updateEvent);
179 return updateEvent;
180 });
181 },
182 put(input) {
183 const id = `${input[definition.config.idField!]}`;
184 if (client.findById(id)) {

Callers

nothing calls this directly

Calls 1

updateMethod · 0.65

Tested by

no test coverage detected