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

filtering with nested properties

is it possible to filter with nested properties? ``` const users = await db .query("users")...

Dynamically inspect Convex API

Hi! I noticed that api and internal are empty if I try to print the keys of them in my actions/mutations/queries. I'd like to dynamically introspect them (so I can show something similar to what you do in the dashboard). ...

Yo guys,

Yo guys, I'm having a convex action which calling my backend running locally on port 1342, I try to GET some resources from the backend using axios, so I've added the "use node" at the top of the action file, when calling my backend with axios.get I get an ECONNREFUSED, I guess it has something to do with CORS? Please note my backend is configured to handle requests from all ports (*). ...

Everyone on team use same .env.local

is there a way just to use same .env.local and everyone to be 'attached' to the same project

Hey guys, quick question, I have an

Hey guys, quick question, I have an query with some args, i want to pass as an arg a convex object, i don't want to specifically set all of its properties as arguments like : name: v.string(), age: v.number() and so on, is there a way to infer the object type and set the argument type to it? Thanks!...

Generating ids

Hey all, is there any way to generate document id's outside of convex? I mean, to send the document id as part of the arguments and create let convex use this id as the document id instead of generating it.

npx convex dev connection issue

am having a little problem when i run npx convex dev it just writes preparing convex funtions and the it stops does anybody have any suggestions for this ?

Can I get a help for getting

Can I get a help for getting authentication correct using Auth0+Next.js app directory (layout.ts)? https://discord.com/channels/1019350475847499849/1176044887238524992/1176044887238524992...

_creationTime format

Curious: - why is _creationTime a number instead of a string timestamp? - why a decimal instead of a whole number of milliseconds? I'm adding durable createdAt and updatedAt fields across my tables, just curious if there's a notable advantage for me....

Querying multiple documents at once

Hello everyone, I'm sorry I don't have a lot of experience in BE development-- I'm mainly a frontend dev. Is it possible to query a set of documents from the db with the argument being an array of ids rather than just one?...

Node.js Quickstart | Convex Developer Hu...

Hi @daun, are you running Node.js in Lambda? You probably want to use the Convex Http client or the simple subscription client: https://docs.convex.dev/client/javascript/node. In order to define your Convex functions you want to run npx convex dev etc. as normal, here's a Node.js quickstart: https://docs.convex.dev/quickstart/nodejs...

Couple of things that make life difficult in the dashboard

At any rate, I'll thread a bit of feedback here: couple of things that make life difficult in the dashboard.

UploadStuff with Next.js 12

@Michal Srb Hello! I'm having trouble setting up uploadstuff. Following the guide, but cant seem to access the library as expected. I'm using Next 12 in case there are any issues there. ...

Hey, we're running Playwright in a

Hey, we're running Playwright in a GitHub action after Vercel has deployed (the GH Action is triggered by Vercel when a Vercel deploy is successful). This works great as the Playwright tests are running on the app deployed at Vercel. But for a lot of tests we seed the Convex DB with a test user just before we run the Playwright test. We use ConvexHttpClient() for seeding the DB, and to be able to use ConvexHttpClient we need the NEXT_PUBLIC_CONVEX_URL - which is dynamic as we use Convex Preview deploys. Any ideas for how to provide GitHub Actions with the current NEXT_PUBLIC_CONVEX_URL? ...

Parameter of v.array()

Hello, i have a question about using v.array(), do i need to define the values of the array when i use it in my schema, because TS server underlines it that values sre missing? What if want to provide values later to the array?

Hi Convex friends a couple noob

Hi Convex friends, a couple noob questions: - can you implement REST APIs with Convex? (My use case is making an “action set” for the new GPTs functionality) - what do folks on native clients (iOS, Android, windows, macOS) do if they want to use services hosted by Convex? Links to docs/guides greatly appreciated. Thanks!...

Serial number type

Hello Convex users, i have a simple question about using union type in Convex, would it make sense to use a union if i want to create a serialnumber for my users in the following format: #1987, like a string and number union?

can't find convex/server

nope all deps are installed and "convex": "^1.5.1",

Bulk deletes and indexes

```ts export const removeExpired = internalMutation({ async handler(ctx) {
const expiredSessions = await ctx.db...

Vercel deployment instructions

FYI I couldn't get the Vercel deployment instructions in the docs to work. I ended up going with a build command of npx convex deploy && yarn build. The docs (https://docs.convex.dev/production/hosting/vercel) state to use npx convex deploy --cmd 'npm run build', however the screenshot shows npx convex deploy --cmd='npm run build' (note the =), but neither worked for me, erring with: error: unknown option '--cmd=npm run build'...