Convex Community

CC

Convex Community

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

Join

Clerk integration call functions infinitely - need help

Using expo@52.0.17, convex@1.17.3 and @clerk/clerk-expo@2.4.2, currently working in a turborepo project with yarn I have configured the clerk integration according to the documentation, my _layout.tsx : ```typescript import { ClerkProvider, useAuth, ClerkLoaded } from "@clerk/clerk-expo"; import { ConvexProviderWithClerk } from "convex/react-clerk";...
No description

convex.json schema?

Hey there, I was wondering if there was a JSON schema available for the convex.json config file by chance. Does this exist? Couldn't find anything on the Convex search.

I currently run a cron job every 20 sec but its using bandwidth a lot how can i reduce the bandwidth

My cron job currently runs every 20 sec. It scrapes data from a site and inserts into the db. The db has 300 rows and 12 columns which is updated every 20 sec. My ideal situation is to be able to run the cron every 10 sec or even lower but seeing that i am doing something clearly wrong how can i optimise this behavior. I liked using convex because of the real time changes that can be seen in the UI when i change the db data after cron job updates it. Any help is appreciated.
No description

.paginate combined with .withIndex is causing an error

let say I have two tables in my scheme that represents a user that lives in a city and posts that are made in a city. All the code below could be better arranged, but this is for the simplicity of the example: ```TS const userTable = defineTable({...

Convex Auth + Tamagui (Monorepo)

Hey, I added convex to my nextjs app so far, but trying to use Auth signIn Im getting http://localhost:3000/api/auth 404 Not found error. What am I doing wrong?
No description

Convex with Vue/Nuxt

Hi everyone! Has anyone here used Convex with Vue.js or Nuxt.js? If so, I’d love to hear about your experiences and best practices! Also, is there any official support for Vue.js coming from Convex, similar to the @convex-dev/react library for React? Or any guidance on how to best leverage Convex’s features in Vue apps, especially for managing real-time updates?...

Telegram Authentication

I'm writing a React app with Convex. I want to support Telegram's super simple Mini App authentication. Here's how it works:...

how do you do a like operator in queries?

Just started using Convex and I'm trying to find out how to do a simple like operator in a query.

How to get `ctx` through indirection?

I'm writing a telegram bot that uses webhooks. I was able to set it up like this: convex/http.ts ```typescript import { httpRouter } from "convex/server";...

Help with search in join table

Hi, I've been looking for an answer for this with no success. I have 3 tables, users, workspaces and members. members is a join table, each member has a userId and a workspaceId. Every workspace has also an ownerId. I want to be able to search (text search withSearchIndex) workspaces where the user is a member of without being the owner. I'm using aggregate for performance reasons and i need pagination. Here is how we would write it in SQL code to be more clear. ```SELECT w.*...

How can we collaborate accross diffrent repos

I am currently developing a project that consists of two parts: Web Admin Panel - Used for managing and overseeing the system. React native App - The main application for end users. The issue I'm facing is related to maintaining a shared codebase for these two platforms. Whenever I work on the react native app, the web admin panel starts throwing errors due to changes I make for the react native features or configurations. Similarly, if I focus on the web admin panel, the Android app encounters compatibility issues....

Connect to multiple projects from the same nextjs app

Is this a matter of having the right imports for types and having multiple convex folders? I’m curious if anyone has tried this. Basically being able to call functions in different projects in different parts of the app. With the firestore sdk for instance you can define as many db objects as you want...

Auth not working properly in Nextjs

hey guys what could be the reason that convex auth is not working properly on my nextjs app? setup everything as on the tutorial but after login, i dont get redirected and even if i manually go to protected route, i still get redirected back to /login page, and isAuthenticated is always loggin false ``` import {...

expo-push-notification with convex

anyone managed to work with convex expo push notification component? like this blog is not helping me enough or I am dumb enough to make it work, https://www.convex.dev/components/push-notifications where I can find the components here in this code snippet...

Sync local database to Convex database

Hi, I have been using Convex for a month, it's very good. However, Im developing a mobile app with Expo, I want to sync data in my app local storage to Convex but I don't know how. Furthermore, can u also suggest me what lcoal database should I use (WatermelonDB, rxdB, etc.)

After moving from Clerk to Convex-Auth my convex tests fail

I'm pretty sure that everything in convex folder is fine, convex dev does not report any problems. But all my tests are now failing with this import error:
Error: Cannot find module '/home/michael/WebstormProjects/bikeproto/node_modules/@convex-dev/auth/dist/server/oauth/checks' imported from /home/michael/WebstormProjects/bikeproto/node_modules/@convex-dev/auth/dist/server/oauth/callback.js
Error: Cannot find module '/home/michael/WebstormProjects/bikeproto/node_modules/@convex-dev/auth/dist/server/oauth/checks' imported from /home/michael/WebstormProjects/bikeproto/node_modules/@convex-dev/auth/dist/server/oauth/callback.js
I'm probably missing something obvious? Already wiped my node_modules and reinstalled all dependencies, but no bueno....

Multi-part complicated forms

I am pretty new to front end development. I am building with Next.js for the front end, I am building an app that is a multipart form for building a rather large json eventually. Wondering what the best approach is. In particular I am not sure what the best approach is on the front end....

Help me better understand paginated queries

I'm having trouble running a paginated query in server using the filter from the convex-helpers library when, in client, I give a small value to initialNumItems. I have 2 tables: table campaigns...

create a new account

I have an account But I'd like to set up a new account for a startup I am working with, and I'd like to keep the two accounts seperate. Currently, I only have one github login. I am a member of the startup's organization and have an email from the organization, but am not currently using that email to login to github...