import { keep } from "@sagold/json-query";
const input = { object: { a: { id: 33, name: "a" }, b: { id: "id-b", name: "b" } } };
keep(input, "/object/*/id"); // { object: { a: { id: 33 }, b: { id: "id-b" } } };
I am also wondering whether this is achievable with the current API.