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

Convex Ents Cascading Delete not working

```import { defineEnt } from "convex-ents"; import { v } from "convex/values"; export const collectionsSchema = defineEnt({ name: v.string(),...

Convex Ents and Convex authTables TS error

Hi, I want all my schema to use Convex Ents. But the authTables from @convex-dev/auth/server seems to be not compatible with Convex Ents. As I am getting typescript error if I add these tables. Can anyone help or guide me in the right direction?
No description

file storage: how to make the files private and secure

Hi accessing the file via the url is public as long as you get the link. How to make them readable only from my app with user authentication check based on my URL? Also is there anyway to make them encrypted so only the user that uploaded them can read them? Is it even possible and how to implement it?

Is convex api encrypted?

Is convex api encrypted? I mean are all of our http requests beeing sent encrypted to db?

Import users

I am creating a dashboard where admins can upload a csv with email and temporary password and people will get emails with verification code and they can signin and reset password, what's the best approach? i mean do I have to call the signIn method individually? using convex auth...

unable to query relation with getOneFrom helper

```ts import { query } from './_generated/server'; import { getOneFrom, getAll, getManyFrom, getManyVia } from 'convex-helpers/server/relationships'; export const get = query({...

Unable to Login to Convex

So recently, our teamโ€™s Github Account was marked as spam by Github due to which they have banned me from using any third-party app. Now I am unable to login to my convex account, even our convex account is on the pro plan. I require help with this matter. Any contributions would be much appreciated!

Search Index by Two or More Fields

Hello, I'm trying to retrive a query using searchIndex. I need it to query documents by two or more fields. This is what I tried so far, but is only retriving results for legalName. ...

Trying to generate a OpenAPI C client - repeatedly fails to generate "any_type.h"

๐Ÿ‘‹ Trying to explore and see if Convex might be a good choice for a simple side project. I'm basically looking to interact with Convex through a Zig application. That being the case, it seemed like generating a C client is the right call, unfortunately the generator appears to constantly fail to generate the necessary files. When I go to build, the compiler keeps complaining about a missing file called any_type.h ...

Understanding usePaginatedQuery

I'm trying to wrap my head around how to use a page based usePaginatedQuery, so basically if a user hits /posts?page=1 or /posts?page=2, I want to fetch 5 items and change the offset.
the usePaginatedQuery seems to be more like a lazy scroll type of thing. Maybe I'm missing something?...

I'm having this issue building with vercel on @xixixao+uploadstuff, can someone help me?

Failed to compile. ./node_modules/.pnpm/@xixixao+uploadstuff@0.0.5_react-dropzone@14.2.6_react@18.3.1react@18.3.1_typescript@5.6.2/node_modules/@xixixao/uploadstuff/lib/UploadDropzone.tsx:2:43 Type error: Could not find a declaration file for module 'react-dropzone'. '/vercel/path0/node_modules/.pnpm/react-dropzone@14.2.6_react@18.3.1/node_modules/react-dropzone/dist/es/index.js' implicitly has an 'any' type. There are types at '/vercel/path0/node_modules/.pnpm/@xixixao+uploadstuff@0.0.5_react-dropzone@14.2.6_react@18.3.1react@18.3.1_typescript@5.6.2/node_modules/react-dropzone/typings/react-dropzone.d.ts', but this result could not be resolved when respecting package.json "exports". The 'react-dropzone' library may need to update its package.json or typings. 1 | import { useCallback, useState } from "react";...

Is convex.dev suitable for a Web3(crypto) project?

Hi, everyone. I'm starting a new Web3 project and I'm considering using Convex as the backend. While I was working on a previous AI project using Convex I saw some parameters in the Auth API documentation that looks like were related to crypto wallet. Do you have any sort of libraries that would make it easy to login/singUp using a crypto wallet or support any wallet integration? Also, do you have any sample web3 projects or know of any other web3 projects using convex and with their github rep...

getting random "n" entries from a table with db query

`export const getQuestionsWithSession = mutation({ args: {}, handler: async (ctx, _) => { const random_questions = await ctx.db.query("session_question").take(5); // const id = await ctx.db.insert("session_question", { text: "" });...

Best practice to store "callbacks" in database?

For example, let's say I have a JS interface for game achievement: ```ts type Achievement = { title: string;...

Error: {"code":"IdTokenExpired","message":"Expired: ID token expired at 2024-09-27 18:40:05 UTC

Please, How do I fix this? I can't reopen the app and I can't logout from my web app. Its really frustrating.

struggling with mutation

I'm trying to infer a type from my schema in order to type locationData which I will pass to the mutation but I keep getting the following error:
src/convex/addCompleteProperty.ts|7 col 23-62 error| Type 'TableDefinition<VObject<{ district?: string | undefined; city?: string | undefined; area?: string | undefined; postal_code?: string | undefined; nearest_landmark?: string | undefined; latitude?: number | undefined; longitude?: number | undefined; country: string; province: string; address: string; }, { ...; }, "requ...' does not satisfy the constraint 'Validator<any, OptionalProperty, any>'.
```ts import { mutation } from './_generated/server';...

How do I enable console.log?

console.logs, console.infos don't seem to show up in the log in the dashboard, nor when using npx convex dev --tail-logs, am I missing something ๐Ÿ™‚ ?