Skyblue (Matt)
CCConvex Community
•Created by Skyblue (Matt) on 2/5/2025 in #support-community
Action context inside auth callback
I'm trying to run an action inside of the
afterUserCreatedOrUpdated
callback, but I'm getting the following error:
Uncaught TypeError: ctx.runAction is not a functionA lot of the documentation talks about runAction, but I could only find examples of using it with useAction on the client. I really want to add details to the users table with 3rd party information after create. What am I missing?
13 replies
CCConvex Community
•Created by Skyblue (Matt) on 1/17/2025 in #support-community
Apply generated document id to a non-system field in schema
Hey all! I'm evaluating convex along with a few other services. The promises of convex are very exciting and what drew my attention to it. But I'm getting hung up on the inability to control document schema completely.
Here's what I'm trying to do:
I know that using the v.id() is meant for storying references. But I was really hoping to use it to also generate the document id with a different name. I would prefer to not pass on the system fields to the client and use underscores. Planning to use zod to strip those out of responses.
Is there a way to apply the document id to a non-system field of my choosing?
47 replies