Convex Community

CC

Convex Community

Join the Convex Discord! Explore Convex, the fullstack TypeScript platform for developers and startup founders.

Join

support-community

show-and-tell

general

self-hosted

announcements

Typeschecks inside database queries

Hey how can i check if a particular item is in database array

Any thoughts/feedback on this approach?

Any thoughts/feedback on this approach? I'm using categories in a select input in my create videos form. Curious as to how i could improve it, or if i'm completely missing out on some smarter way to do this ๐Ÿค” ```ts // schema.ts export const CATEGORIES = [...

Canceling recursively scheduled function runs

Looks like the big red button doesn't work for recursive loops that return immediately ๐Ÿ˜ฌ

Alternatively would love to get help on

Alternatively, would love to get help on how to use transformer.js with convex to generate embeddings. I kept getting this strange error on convex when trying to use @xenova/transformers ๐Ÿงต

Hey team is there a way to extend the

Hey team - is there a way to extend the vector store dimension limit from 2048 to 4096? I find the 2048 embedding length to be quite restricting esp working on llama2 based embeddings (7b default size = 4096). Thank you!!๐Ÿ™

Thanks Tom I ve added this but still no

Thanks Tom. I've added this but still no luck. Is there anything else to add?

by the way I m new here and also new to

by the way, I'm new here and also new to Convex; it's pretty good so far, but I'm surprised the go-to for auth is clerk, a paid service. I tried to implement my own Convex NextAuth adapter and failed miserably it'd seem. it's pretty frustrating. it might be worth doing without these libraries, but I'm afraid that's even harder. all of this is kinda giving me a headache tbh. tried NextAuth for the first time a few days prior, and it worked well, but then I wanted to connect it to a db, and here w...

Optional arguments and patch

I read that setting a field to undefined with db.patch unsets it. now I'm a bit afraid of implementing an "update" function that can update any values if you provide a value for them: ```ts export const update = mutation({ args: { id: v.id("users"),...

I am curious how does `db get ` know

I am curious, how does db.get() know which table to look in? What's the science behind it? Or are all docs just saved in the same table, so to speak, on your servers? I was imagining you use something similar to a shard key or sumething maybe? Or a seeded random generator for the IDs?

Hi how can we get documents based on a

Hi, how can we get documents based on a list of id;s that it should match export const getUsers = query({ args: { userIds: v.array(v.string()), //list of userId's that I want to check and retrieve...

search ordering

Feedback for search - ordering is important. In my case the search is over a set of transactions listed by date. Once you type in the search box, order becomes random (from the user's perspective).

I think I know the answer to this but I

I think I know the answer to this, but I want to make sure. Consider this schema: ``` threads: defineTable({...

NoImportModuleInSchema

hello! ๐Ÿ‘‹ so I got this error from convex server after saving changes in a file - but had no idea what this means (also didn't find anything on the docs). Curious if anyone has insights? Appreciate it!!
400 Bad Request: NoImportModuleInSchema: Hit an error while evaluating your schema: Can't import _deps/SATAODX3.js while evaluating schema...

Raw query

But still wanted to know if it supports that as if the query is bit heavy and needs a lot of calculations on the db part then the raw query is best for that I think. Do correct me here if I am wrong.

Convex Dashboard access management

Is there a way to set team user permissions to data/table access on the dashboard? Pitching Convex to a client, they deal with files / data that are sensitive/private and want to reduce risk from remote contractors having access.

Validator for object with dynamic keys

hi all, super impressed so far with convex, but quick question should I be allowed to do the following ```...

GitHub - cloudflare/next-on-pages: CLI t...

Hi, is there anyone try to deploy on cloudflare pages? with next.js, via https://github.com/cloudflare/next-on-pages I just started from npm create convex@latest -- -t nextjs-lucia-shadcn but currently stucked by cloudflare wrangler problem...

Optimizing embedding

is there any smart way of optimizing updates to the embedding of text content? For example - in a notes app, idk how expensive updating the embeddings for document might be if we update the text every time the note is changed

Could not find ConvexClient in Next.js

So I have something like this: _app.tsx ```ts <ClerkProvider publishableKey={env.NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY}>...

Patch not typechecking

for now i do a db.get and fill any missing values in the db.patch with those values but idk y i need to do 2 queries for the sake of typescript??