how can i access the roomCode and redirect user
and i get
Property 'roomCode' does not exist on type 'string & { __tableName: "games"; }'.ts(2339)
1 Reply
db.insert
returns an ID, not the document itself. Either use db.get
to load the document you just wrote, or return the room code directly