create a new account
I have an account
But I'd like to set up a new account for a startup I am working with, and I'd like to keep the two accounts seperate.
Currently, I only have one github login. I am a member of the startup's organization and have an email from the organization, but am not currently using that email to login to github...
Request: Is a document is referenced anywhere else?
I'm building an app for work, and in the front-end there are lots of things that can be added and deleted by the user. In a few cases, I'd like to prevent a given item from being deleted if it's referenced by any other document in any other table.
For example, I'm going to be tracking regions where our company has offices, so I made a
regions
table. There are many things that will reference a specific region—staff, contacts, deals, etc.—and I'd like to prevent a region from being removed if it's referenced by any of those things.
What I'd love to have is something like a documentHasReferences
helper function:...Is there an increment operator?
If I want to increase an integer field of a document by one, do I always have to read the document first then patch?
VERCEL_URL - dynamic Convex env
Hey there! I need to figure out the best way to handle VERCEL_URL. We are constructing clerk invitations in our Convex functions and need to generate a redirect url for the invitations. We want this to work for our preview deploys and prod. Prod is easy technically as it's a static domain and we could just explicitly set VERCEL_URL in the dashboard, but this doesn't work for previews.
So what is the best/easiest option for setting this in Convex during Vercel deployments? Thank you!...
Upload Chunking
I'm writing an application that has an upload functionality for somewhat larger video file (50mb - 500mb) and my audience/ customers might have slow internet upload speeds. Is there a way to append chunks of data to the file storage so I do no run into the 20mb or 2min upload limitations. Any ideas?
Can anyone please tell me why this is happening ?
It is working fine till yesterday but today it is giving this error it is failing every request everything is on loading .....

mutation doesnt rollback query state on failure
The issue is that as soon as the applyOptimisticUpdate function is called to modify the localstore, the remoteQuerySet map within the RemoteQuerySet class is immediately updated to match the localstore values—this happens before the mutation is executed.
In the first screenshot, you can see that the backend still holds the unmodified value. In the second screenshot, however, the remoteQuerySet already reflects the updated value, even though the mutation hasn’t been executed yet.
Mutation would throw an exception on the backend and values are not rollbacked....

httpAction
can't seem to get the body inside an http post action
https://docs.convex.dev/functions/http-actions
body is undefined everytime?...
Hello, I would like to implement E2EE chat in my Vite/Convex app. Anyone have experience?
I saw the whisper implementation, but looking for something that will work in a conventional account based chat.
Request to Implement llms.txt on Convex.dev
What is llms.txt?
Today, websites serve not only as a source of information for humans but also as a critical resource for large language models (LLMs). Language models enhance various tools, including development environments for coders, by utilizing information about programming libraries and APIs directly from website documentation.
Why Implement llms.txt?...
Error in return types
I am getting the error below
when i call a query or a mutation simply because i am returning a Result type ```export class Result<T> {
constructor(
public readonly data?: T,
public readonly error?: string...
Uncaught Error: Result {"data":"undefined","error":"Unauthorized"}
Uncaught Error: Result {"data":"undefined","error":"Unauthorized"}
corsHttpRouter
How can I get the code for the corsHttpRouter mentioned in this video?
https://youtu.be/c7Y0wCml1kg?si=PPh7IPR_04Lvudg1...
Langchain & Langsmith Integration fails
We've integrated Langchain in our convex app and it's working great.
But we can't get Langchain tracing to work at all. It simply does nothing on the convex backend. No errors. No logs. No traces on Langsmith. Nothing.
We've integrated following these docs:...
Returning data from Tanstack Query useMutation wrapper
Maybe i'm missing something but is it not possible to return data returned from the convex tanstack query mutation wrapper?
```ts
export const createDealMutation = mutation({...

Should I use v.float64()?
On this page on VectorSearch it suggests using
v.float64()
for the embedding field, but it's not even mentioned here.
I'm using zodToConvex()
from convex/helpers
and, therefore, don't have access to float64()....Race condition error upon await ctx.auth.getUserIdentity();[revised post]
Business Use Case: This condition was encountered by a new joiner trying to create an account on clarity and trying to join a space.
Observed Behavior:
The initial code for the getById function I wrote is as follows:...

Understand how Context works in test environment with Identity
Hi Everyone,
I'm a bit confused about the context in my test. Here's what I'm trying to achieve:
I want to check if a user can access a document created by another user. To do this:...
OTP Verification after login on Profile dashboard
We are using twillio and resend as SMS and Email services, on intial login we are verifying phone number by sending otp to the user, and google login without otp verification.
Now we have built a Profile dashboard where a user can change the mobile number and email address, whenever user changes any of them I want to verify by otp.
We've tried using the same TwilioOTP.sendVerificationRequest by passing the required params but its not accepting the ctx which we are trying to pass from a mutation function....