The new .meta() function in zod v4 could be a nice way to be able to collect metadata for gqloom registration.
E.g.
export const SortDirection = z
.enum(["ASC", "DESC"])
.meta({ id: "SortDirection" });
export type SortDirection = z.infer<typeof SortDirection>;
I would expect the meta.id would be able to register with gqloom with a name of "SortDirection"