David AlonsoD
Convex Community2y ago
1 reply
David Alonso

Extracting the table name from the TableDefinition

I want to do something like:
export const vAllSchemaDocsUnion = v.union(
  ...Object.values(fireviewSchema.tables).map((table) => doc(fireviewSchema, table.name))
);
Was this page helpful?