MCPcopy Create free account
hub / github.com/instantdb/instant / _record

Function _record

client/packages/python/tests/test_webhooks_dispatch.py:44–52  ·  view source on GitHub ↗
(namespace, action, record_id="r1")

Source from the content-addressed store, hash-verified

42
43
44def _record(namespace, action, record_id="r1"):
45 return {
46 "namespace": namespace,
47 "id": record_id,
48 "action": action,
49 "before": None if action == "create" else {"id": record_id, "title": "b"},
50 "after": None if action == "delete" else {"id": record_id, "title": "a"},
51 "idempotencyKey": f"{namespace}-{action}-{record_id}",
52 }
53
54
55# ---------- _resolve_handler precedence ----------

Calls

no outgoing calls

Tested by

no test coverage detected