joshpachnerJ
Convex Community2y ago
14 replies
joshpachner

Is there a way to get around the Id<"tablename">

Ive been looking in the docs trying to figure this out so that using convex is a lil more type friendly.


Situation:
Ideally want to keep using the Id<"tablename"> when defining my tables in convex's schema.
BUT
throughout the rest of my app, i dont want to be constantly having to " as Id<"tablename"> " for all my relational fields

I've tried the " Doc<"tablename">
but that still returns fields with the Id<"tablename"> (see screenshot)


Anyone got a solution for this?
image.png
Was this page helpful?