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

Infinite loading schema on dashboard / unable to push

Currently not able to push a schema to Convex even though type check passes and I'm not able to see the current schema in the dashboard as it shows an infinite loading state. How do I "reset" it?...
No description

Sorting different on backend vs frontend in React

I have a weird bug where I have a query that sorts a table of tasks based on "start_date".
```const tasks = await ctx.db.query("tasks") .withIndex("by_project", (q) => q.eq("project_id", projectId)) .order("asc")...

Migrations `dryRun` on multiple samples

When I run a migration in dry mode it executes on only one single document, which sometimes is skipped because it's not the instance of a document that needs to be migrated, which makes it hard to test the migration. Any suggestions?

Validate convex auth from standalone hono server.

I have a use case where we have a standalone hono server with cloudflare AI worker. It lives in the same repo as our convex backend, and the rest of our stack. I'd like to make calls with it from our frontend, but want those calls to only be made from an authed user....
No description

Schema Type Info Not Propagating In Svelte / VSCode

Couldn't find a similar post / issue so... I have defined a schema like this... ``` import { defineSchema, defineTable } from "convex/server";...
No description

prefix validator keys helper πŸ™

I'm playing around with this code: ```ts // Helper function to prefix object keys for the Convex validator function prefixValidatorKeys<T extends Record<string, any>>(obj: T, prefix: z.infer<typeof zBlockType>) { return Object.fromEntries(...

Convex Auth Typescript Error with Vercel

A new convex deployment, first time deploy to Vercel throws this error ``` import type { MutationCtx } from "./_generated/server.d"; import { convexAuth } from "@convex-dev/auth/server";...
No description

App stuck reconnecting via websocket

Hi folks, I have been migrating my pet project over to convex and everything has been smooth so far. However, all of the sudden, my app (react) no longer seems to be able to connect to the dashboard via websocket. It keeps trying to "sync" in the network tab (see screenshot) but it never succeeds connecting, just stuck in an infinite loop of re-trying. ...
No description

Convex socket connection is disconnected after authentication failure

As shown in the image, when attempting to log in with an expired token, the connection is disconnected after the failure message is returned. Is this the intended behavior? AuthCallback is not being called.
No description

convex auth with google

i am using convex auth and nextjs with google provider when I get redirected to googles sign in it says "Sign in to continue to something.convex.site" where can i change this to my domain?

How do I wait for a useQuery declaration to return before proceeding?

I feel like I'm missing something simple. Here's the code for a component that gets called on many pages in my application : ``` const { isLoaded, isSignedIn, orgId } = useAuth(); const contractTypes = useQuery(api.contract_types.list, { orgId: orgId !== undefined ? orgId : undefined }) || [] const addContractType = useMutation(api.contract_types.add)...

Request Body as argument

how do i pass request.body as an argument since its not a supported convex type

generateUploadUrl(...)

Add options to generateUploadUrl so you can specify what file types or sizes are allowed. Otherwise, it turns out that they can fill it with whatever they want, which ruins the idea. Example ```ts generateUploadUrl({contentType: "image/png", maxSize: 1024}) or multiple...

Convex Auth discord roles

Hi there! How well does convex Auth match the next Auth implementation? Is it feasible to configure it to put discord roles into profile via oauth similar to this article for next-Auth? https://hwhite.dev/blog/next-auth-discord-roles#setup...

How to check which user is signed in

Sorry all, I just can't find it in the docs. I found an article but the method shown is now deprecated. I'm using the convex auth implementation in react/expo, I assumed there would be a hook for the current user? πŸ™‡πŸ»β€β™‚οΈ...

Convex-Auth/NextJS/NPM (Not Vite)

Using https://github.com/get-convex/convex-auth-example as a baseline I have created a repo but even though the packages are installed I am getting errors that they cannot be found. - Cannot find module '@convex-dev/auth/server' or its corresponding type declarations. - Cannot find module '@convex-dev/auth/providers/Anonymous' or its corresponding type declarations.ts(2307) - Cannot find module '@convex-dev/auth/providers/Password' or its corresponding type declarations.ts(2307)...
No description

How can I re-use table validators?

If I define types in my table in my schema, how can I use them in functions and get the types?

Query Convex data from Next.js route.ts endpoint

Can I query data from Convex db in next.js route.ts endpoint? app/api/endpoint/route.ts ```ts...

Dashboard - export documents that match query

I don't see an easy way to export all documents that match a certain query as a jsonl file for instance, am I missing something?
No description

Access the action error message when fail

Hello, When I call an action that make a mutation to an external API, and the request fails, I get a Convex Error string, but I need to access the API response error message. ``` [CONVEX A(organizations_node:updateFacturapiCertificatesAction)] [Request ID: 14d31c10a571998b] Server Error Uncaught Error: El certificado no es un CSD. AsegΓΊrate de no estar enviando una FIEL. at async handler (../convex/organizations_node.ts:230:6) Called by client...