StoicWandererS
Convex Community3y ago
5 replies
StoicWanderer

What should I define here, if i want to reference another table by ID?

Hello fellow Convexers,

My question is that, because i can't figure it out, what should I put on Line#59, here:
https://github.com/andrejmoltok/oceans5/blob/O5T-6-Userlist-Convex-RW/convex/users.ts#L59

if I have defined the table in my schema as is on Line#52 here:
https://github.com/andrejmoltok/oceans5/blob/O5T-6-Userlist-Convex-RW/convex/schema.ts#L52

Typescript says it cannot be assigned as string nor viceversa. what comes on line 59 in the users.ts file?

Can anyone help please?
GitHub
Oceans5 is a BattleShip clone game in Next.js. Contribute to andrejmoltok/oceans5 development by creating an account on GitHub.
oceans5/convex/users.ts at O5T-6-Userlist-Convex-RW · andrejmoltok/...
GitHub
Oceans5 is a BattleShip clone game in Next.js. Contribute to andrejmoltok/oceans5 development by creating an account on GitHub.
oceans5/convex/schema.ts at O5T-6-Userlist-Convex-RW · andrejmoltok...
Was this page helpful?