Does defineEntSchema have a way to set strictTableNameTypes: false ?
Why sometime ents one-to-one with optional: true work, sometimes not?
Is there a way to run some code just after user is created?
Using TypeScript for Frontend and Python for Backend
Where to store api helper utils?
Roles / Permission modeling (Ent Tables)
edges
instead of foreign keys? What's the common best practice and pattern I should know....using zod schema for validation
ConvexAuth+Next.js: should I implement `/api/sign-in`?
useAuthActions().signIn('resend', formData)
, I see that the request goes to my server's api/sign-in
, which is 404.
I read here that this is the default value. However, the docs does not mention that I have to configure this route somehow. I thought this is handled by convexAuthMiddleware
, but this isn't true....500 Status code when provisioning
npx convex dev
:
Error fetching POST https://provision.convex.dev/api/create_project 500 Internal Server Error: InternalServerError: Your request couldn't be completed. Try again later.
Error fetching POST https://provision.convex.dev/api/create_project 500 Internal Server Error: InternalServerError: Your request couldn't be completed. Try again later.
Error: Unexpected type of undefined
nextjs
app, I'm using preloadQuery
to load and render a query inside a Server Component
:
```typescript
...
// this is a server component
const localesQuery = preloadQuery(api.locales.get.default, {...Nodemailer as external package not working
✘ [ERROR] Could not resolve "nodemailer"...
Zod convex helpers build error
npm run build
on nextjs app
```Type error: Type '{ [Index in keyof T]: T[Index] extends ZodTypeAny ? ConvexValidatorFromZod<T[Index]> : never; }' does not satisfy the constraint 'Validator<any, "required", any>[]'.
Types of property 'length' are incompatible.
Type 'T["length"] extends ZodTypeAny ? ConvexValidatorFromZod<T["length"]> : never' is not assignable to type 'number'....Best way to call an `authenticatedQuery` from another `authenticatedQuery`
customQuery
as follows:
```ts
export const authenticatedQuery = customQuery(
queryRaw, // The base function we're extending
{...[Module: server/TS]: Generic query pipelining
() => getDocumentIds --> (Ids) => enrichDocuments(Ids)
I want to make this hook generic such that it can be used with any compatible getter/enrichment function pair, e.g. both getVideoIds --> enrichVideos
and getChannelIds --> enrichChannels
. Therefore, the return type of Query A must be compatible with the parameter type of Query B. I have taken inspiration from the implementation of useQuery
and have actually made it work in practice, but not without ignoring a TS error - not very peace of mind-y.
I found that specifying Args
in the FunctionReference
of QueryB approximated the solution, but I had to manually specify the correct object key (e.g. "videoIds"). Is there a way to use some placeholder as such?: { PLACEHOLDER: FunctionReturnType<BaseQuery> }
...Convex Auth e2e test with Playwright
clerk_test
in the email is treated as a fake user.... For example michael+clerk_test@example.com
- Every user with that kind of email address can verify auth with 424242
(This code works for only users with clerk_test
in their email...How to use mutations with Remix actions
actions
in Remix to call a Convex mutation to insert form data into a table. I can't find much info about using mutations outside of useMutation
, which does not work in an action.
Any pointers on how to pull this off? Thanks!
(PS: No rush, I'm signing out for a few hours)...CONVEX_DEPLOY_KEY monorepo
How to return id from db in my case
const res = await ConvexVectorStore.fromDocuments(splitDocs, embeddings, { ctx });
const res = await ConvexVectorStore.fromDocuments(splitDocs, embeddings, { ctx });