Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/clientdb/clientdb
/ put
Function
put
core/client.ts:182–189 ·
view source on GitHub ↗
(input)
Source
from the content-addressed store, hash-verified
180
});
181
},
182
put(input) {
183
const
id = `${input[definition.config.idField!]}`;
184
if
(client.findById(id)) {
185
return
client.update(id, input).entity;
186
}
187
188
return
client.create(input);
189
},
190
};
191
192
return
client;
Callers
nothing calls this directly
Calls
3
findById
Method · 0.80
create
Method · 0.80
update
Method · 0.65
Tested by
no test coverage detected