Open benjie opened 11 months ago
Specifically, it's
const handler = build.getNodeIdHandler("Chain");
and
const spec = specFromNodeId(handler, $nodeId);
const $id = spec.id;
Or something like that, depending on the shape of your table. E.g. if you have a composite primary key (organization_id, issue_id)
then it might be:
const {
organization_id: $organizationId,
issue_id: $issueId,
} = specFromNodeId(handler, $nodeId);
Also note that if the NodeID is incompatible with this type then these values will be null (I think?)
See https://discord.com/channels/489127045289476126/498852330754801666/1138749365096304660
This also depends on graphile/crystal#2013 really.