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

Looking into the Airbyte integration

Looking into the Airbyte integration this morning, and it doesn't appear as a supported connector from the dashboard. Wondering if this is something the Convex team manages via Airbyte or if I should reach out to them directly.
No description

Hey is it possible to get the timeout

Hey, is it possible to get the timeout for my HTTPS endpoints increased? The endpoint calls a GPT model and takes a little while to execute. This is critical to get my product working. I actually had it increased earlier for Treehacks but I think it got set back.

Also when querying a table is it

Also, when querying a table, is it possible to populate a relationship so that the returned result is a nested object of the related data? Or is it really best practice to iterate over the resultset and execute a query for each FK and append it?

Is there a way to push the code defined

Is there a way to push the code-defined schema and instantiate empty tables in the admin console without executing an insertion via a mutation? (specifically the dev env)

Best Practices | Convex Developer Hub

Morning! I saw the docs on loading states with queries (https://docs.convex.dev/using/best-practices#loading-states). Wondering if there was a similar suggested pattern for mutations, or if I need to manage my own state here?...

Calling queries in effects

Is there any way to have a lazy query? Eg: ```js const myQuery = useLazyQuery(queryName); useEffect(() => myQuery(...args), [...])...

create-react-app `convex/` folder location

Using a regular setup via npx create-react-app. Getting this error:
Module not found: Error: You attempted to import ../../convex/_generated/react which falls outside of the project src/ directory. Relative imports outside of src/ are not supported.
You can either move it inside src/, or add a symlink to it from project's node_modules/.
Module not found: Error: You attempted to import ../../convex/_generated/react which falls outside of the project src/ directory. Relative imports outside of src/ are not supported.
You can either move it inside src/, or add a symlink to it from project's node_modules/.
Since the convex library created the convex folder in that location, is a symlink the recommended solution? ...
No description

Deploy Preview Environments

Is there a recommended pattern to making Convex work well with Vercel Preview Deployments?

Also it appears that

Also, it appears that ConvexProviderWithAuth0 does not support Expo/React Native environments. The window ternary assumes that if its defined that window.location.origin will be available.
No description

Are there any plans to support js ts

Are there any plans to support .js/.ts files for convex.json? It would be nice to be able to populate authInfo from environment variables, as its needed several places in the application as well (Expo config and ConvexProviderWithAuth0) and it also seems like it should be environment specific, so I can it attach to different auth instances for prod and dev....

Otherwise you just need to import the

Otherwise you just need to import the generated code (e.g. useQuery ) from ../../webproject/convex/_generated/react in the other project

Thanks for letting us know freeze992

Thanks for letting us know, @Dan Mercer. If it's something you can change without affecting users, could you try setting the auth refresh time to something very short to see if this happens faster?
No description

Stuck in a provisioning state

I just joined the Discord to ask the same question. It seems like Supabase may negate the primary reasons stated (or at the very least serial request waterfalls, as it supports JOINs). Would be great to get a write up specific to Supabase to assist in making these head-to-head decisions. The React-first approach is compelling though, as it appears a third party library would be required for both Firebase and Supabase to bring hooks and state management to the table. One area I am questioning as well is the Auth. The documentation is pretty thin, and it appears my first project is stuck in a provisioning state so I cant poke around, but having a catalog of both out-of-the-box strategies (like un/pw, phone, magic link) as well as federated providers (google, linkedin, etc) are both things SB and FB offer, and it would be interesting to know how Convex competes on this front....

Convex comps

what's the difference between convex, firebase, and supabase?

Actions transient error

I'm trying to make a new action, and this error is not helping me find my problem. I also see nothing in the logs
No description

Server error

What does this error mean
next-dev.js:23 WebSocket closed unexpectedly with code 1011: InternalServerError: Your request couldn't be completed. Try again later
next-dev.js:23 WebSocket closed unexpectedly with code 1011: InternalServerError: Your request couldn't be completed. Try again later
...

Dashboard opens slowly

Hi friends! We have the following problem: the site opens in 2 minute for me (but instantly for my teammate, the same page). Can you help me debug it? UPD: my site

Limit on number of documents read in a query

Hi friends! We were doing some pretty innocent queries and we hit a 16384 documents in a query limit.... I created a standalone repro for your convenience. https://github.com/vors/convex-load-test ...

Ahoy folks I m trying to deploy a demo

Ahoy, folks. I'm trying to deploy a demo app in vercel, and the build is failing with console logs Error: Unable to pull deployment config from https://<my prod uri> and 403 Forbidden: BadAdminKey: The provided admin key was invalid for this instance. I'm getting the admin key from the project's settings tab as instructed. Anything obvious I'm doing wrong?

👻

something like this? npx degit jamwt/svelte-convex my-project cd my-project npm install...