Hey, is there a way to pass custom info
Hey, is there a way to pass custom info to mutation context? I'd like to return localised error messages in my mutations, but for this I need to know the current locale. What's the best way to do it?
I'm having an issue with the CLI, it's
I'm having an issue with the CLI, it's suddenly not computing types properly
anyone has seem something like that?
I had
convex/taskActions.tsx
working fine. I cloned it as taskEvents.tsx
(exact same file content) and it wont load types
...Just wondering if there's some kind of
Just wondering if there's some kind of way to db.insert() uniquely ? So, the table would have unique docs & if already exist, return an error ?
loading state for mutation
Are there any examples showing a loading state (spinner) while a mutation is in progress?
Document IDs | Convex Developer Hub
Hi,
1. Can someone explain the difference between userID, _id and Id?
2. Is the userId same as _id? or does each userId has a different _id?
3. Also, the docs mention that we need to mention Id<"tasks" like const task = useQuery(api.tasks.getTask, { taskId: id as Id<"tasks"> }) to ensure that the ID belongs to the expected table, but haven’t we already declared the expected table beforehand in the query itself- “api.tasks.getTask”, so why do we need this { taskId: id as Id<"tasks"> } syntax?
...
Svelte auth
I... I don't understand the Svelte Convex-library. I don't understand how to add auth to it. Is this
setConvexClientContext
supposed to be exported? It is declared next to setupContext
, but it isn't exported in index.d.ts
. Also, the options don't expose the fetchToken
-thing. Are there any full examples of auth with Svelte?hi there. If you have 100 users in a
hi there. If you have 100 users in a chat room, and 100 messages are added, does it cost you 10,000 (GET) + 100 (POST) function calls usage? convex is one of the best stacks I've used recently, but I'm concerned about these excessive charges.
Convex is on Bluesky - let's create a Convex starter pack.
Speaking of switching apps, Convex is now on Bluesky: https://bsky.app/profile/convex.dev. Feel free to give us a follow and drop your profile in the thread. I'll make a Convex Starter pack. Also we're still on X
Getting started with SvelteKit
Hi there! started using Convex about a week ago, integrating it into a SvelteKit side-project. It was fun working with Convex and I was able to make my project work as intended. Although, setting up convex in a SvelteKit project wasn't difficult thanks to the 'Svelte Quickstart' in the docs, it took me some time as a first time user to write queries and mutation, more so, implementing them as there weren't any straightforward examples to implement them. I had to jump between the 'Svelte Quicksta...
Shared functionality patterns and authz
being honest, it feels very not ideal,
as i'll need to be constantly thinking about it
e.g
I have a
setStatus
function to patch 1 field. ...All - Bluesky Directory
hey @jamwt not sure who's in charge of social media strategy but I've recently started on bluesky and am gaining a lot of momentum. would recommend reaching out to some starter pack accounts e.g. https://blueskydirectory.com/starter-packs/all?q=web+dev as that brings a pretty steady flow of new followers.
COnvex CLI flags
Can someone explain the scripts in the Tanstack Start + Convex template?
https://github.com/TanStack/router/blob/8ff884ed4bbcc66bec1e72514c070934543df1f5/examples/react/start-convex-trellaux/package.json#L7
The
--once
and --run
flags don't appear to be in the CLI docs...Go app Convex updates
ok, so I have convex setup in my go app and can query data. Im sure this is something I just don't understand both about Go and about convex but I have to 'save' in my Go project for it to essentially rebuild if I want to see updated data from convex.
so if I go to the convex dashboard, add a task, save, then refresh my project, it won't refresh the data but a save of my code will.
could someone point my to my knowledge deficit 😅...
Using Convex Vector Storage
Hello Guys,
I'd like to get your thoughts on vector storage options. I'm considering two approaches:
Using ChromaDB for vector storage
Storing vectors directly in Convex...
Clerk network call not occurring
I'm looking for help please. I have noticed that often times the call to
https://balanced-dolphin-8.clerk.accounts.dev/v1/client/sessions/sess_2ojqFIajVEkL6pKY8eFNaAf5xQ4/tokens/convex?__clerk_api_version=2021-02-05&_clerk_js_version=5.33.0&__clerk_db_jwt=dvb_2ojqEK7D9C9qXRdB6uYdMQXSfSO
doesn't happen and therefore database calls return undefined. I have no idea why it happens at times and at times it makes the call to get the database data. I'm on a next.js project. Here's my wrapper for my project:
```js
'use client'
import dynamic from 'next/dynamic'...Using Convex with Vercel | Convex Develo...
Hi, we're deploying Convex to Vercel and we're following the guide from Convex website, but the Vercel deployment keeps giving an error where it does not recognize that there a CONVEX_DEPLOY_KEY. The option to uncheck everything except the production environment is also missing from Vercel. I'm following the guide in here:https://docs.convex.dev/production/hosting/vercel
It would be great to get some pointers on how to resolve this. Thank you team!...
missing function
When I call the function to delete the annotation based on the ID, this error appears