KEIJI
KEIJI13mo ago

Assigning External IDs to Convex Functions

How can I assign an Id<"players"> type argument to a parameter of type ExpressionOrValue<"playerId"> in Convex without encountering a TypeScript error (ts2345)?
2 Replies
jamwt
jamwt13mo ago
@KEIJI I take it this is in a .filter() call?
ian
ian13mo ago
I believe You just provide the string “playerId” - if this is the first arg to withIndex(.., q=> q.eq(“playerId”, …

Did you find this page helpful?