MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / serialize

Function serialize

packages/core/fumadb/src/adapters/mongodb/query.ts:201–207  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

199}
200
201function serialize(value: unknown) {
202 if (value instanceof Uint8Array) {
203 value = new Binary(value);
204 }
205
206 return value;
207}
208
209function mapInsertValues(values: Record<string, unknown>, table: AnyTable) {
210 const out: Record<string, unknown> = {};

Callers 3

buildWhereFunction · 0.70
mapInsertValuesFunction · 0.70
updateManyFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected