-
Notifications
You must be signed in to change notification settings - Fork 61
Open
Labels
questionFurther information is requestedFurther information is requested
Description
Hi,
Thank you so much for the amazing work. I was wondering if this component provides validators to be used from the main app. For example , if I have a mutation that takes in user id .. would it be possible to validate against that or v.string()
is the only alternative.
Consider an example:
export const addResource = mutation({
args: {
title: v.string(),
ownerId: v.id("user") // <--- this doesn't work as user table is inside betterauth component
},
handler: async (ctx, { title, ownerId }) => {
// Insert resource
},
});
If there are no validators, is there a plan to expose them?
Thanks again!
JuliusGudni
Metadata
Metadata
Assignees
Labels
questionFurther information is requestedFurther information is requested