I m playing with actions trying to use
I'm playing with actions, trying to use playwright, and am running in to some issues
Me and ballingt 9068 just pair
Me and @ballingt just pair programmed for a bit and updated the error message to look a bit more like this - which is hopefully more helpful in the future.
...
Uncaught Error: [CONVEX Q(listMessages.js:default)] Uncaught Error: QueryImpl {"state":{"type":"preparing","query":{"source":{"type":"FullTableScan","tableName":"messages","order":"desc"},"operators":[]}}} is not a supported Convex type.
Uncaught Error: [CONVEX Q(listMessages.js:default)] Uncaught Error: QueryImpl {"state":{"type":"preparing","query":{"source":{"type":"FullTableScan","tableName":"messages","order":"desc"},"operators":[]}}} is not a supported Convex type.
You are potentially missing await too
You are potentially missing await too.
conversations
is a future so the if statement will always match be true?Module: schema | Convex Developer Hub
I was trying to create a timestamp or datetime field in the table schema and to my surprise was not able to find such class on https://docs.convex.dev/api/modules/schema#s .... can we get something to work with times in the schema (for cases other then _createdTime)?
I see long deployment times on the cafe
I see long deployment times on the cafe wifi
Is good internet a requirement?...
Convex functions ready! (22.26s)
Convex functions ready! (22.26s)
👋 got my project working locally with
👋 got my project working locally with convex (nextjs 13 project) but my build/deployment fails on vercel.
well, i should say it hangs. i followed the docs and have my env variables yet and custom build command to include
npx convex deploy
...Read the body of a POST Request
Hey, is it possible to read the body of a POST request in an HTML endpoint?

Hello everyone I have set up an app with
Hello everyone. I have set up an app with Convex or the first time (it was super easy). However, I'm trying to deploy with netlify now, and since my app is built with Next, I use the build command
npx convex deploy && next build
. However, the build keeps failing due to the build command . Would this be the right command to use?Coming from tRPC land I want to set up
Coming from tRPC land, I want to set up end-to-end typing with Convex. What is the suggested pattern for getting this done? For example, I have a function — ...
projects:create
— which has the following signature:
const create = mutationWithSession(async ({ db, auth, session }, project: Pick<Document<"projects">, "name", "description">): Promise<Document<"projects">> => { ... });
const create = mutationWithSession(async ({ db, auth, session }, project: Pick<Document<"projects">, "name", "description">): Promise<Document<"projects">> => { ... });
Optimistic updates for debounced mutations
I would like to have an optimistic update where the mutation is debounced (not single-flighted, but debounced)
My usecase: When user types text in the field, the text should get saved in the database, but only after 1 sec after the user stopped typing. Meanwhile, another user looking at the same page should see the edited text as it gets updated in the database. Kind of like Google Doc.
Can I have no local
useState
and just have the value as useQuery
result, and apply mutation withOptimisticUpdate
? But how to introduce debouncing?
Alternatively, I could keep local useState
, and have my custom debounce()
wrapper which sets timeout and so on. And wrap mutation with that, and call debouncedMutation
onChange. But then what about the other user? Should I Watch
the query and update local state there?...typescript circular reference error
I'm following the sessions middleware blog post and running into a weird issue. Adding the
sessions.ts
file from https://github.com/get-convex/convex-helpers/blob/main/convex/sessions.ts to my project gives me the following:
```
[1] Preparing Convex functions...
[0] wait - compiling......I m seeing this error when I refresh the
I'm seeing this error, when I refresh the page. I have action prewarm, but I don't see any server side logs for it.

CORS headers for HTTP endpoints
One last question for you guys: how do I set access control headers for my HTTP endpoints?
I have a feature request
I have a feature request:
- I was developing things and being a happy developer.
- Then I looked at the function calls quota and became a nervous developer, because we don't have any customers and already burned through 100k+ calls just during the development.
- I started to manually batch query requests and that works to some extent, I was able to cut down the requests count to 30% of original....
Displaying react value
hi, i need urgent help with displaying a value on a react app-- caveat beingthat the entry may not exist for the beginning of the lifetime the page. Can anyone help with that?
React Native
Hi! My friend is trying to set up Convex with React Native Expo and he came across this error. Wondering if Convex isn't compatible with Expo? Or could there be something he missed out?

I m building a project for treehacks and
I'm building a project for treehacks and this is one of the main things I need to bring my project to completion 🥺
generic error
I'm gettting a generic "Your request couldn't be completed" error when calling my endpoint. The logs on Convex aren't acknowledging that the call is being made. Something I noticed is that my action never popped up on the functions list, I'm wondering if I maybe ballsed it up somehow.
```bash
curl -H 'content-type: application/json' "https://charming-wolverine-861.convex.site/promptModel"
...