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

does this really only work with React

does this really only work with React? Can I add this to an existing Vue project?

Hi The documentation states that Code

Hi! The documentation states that "Code generation isn't required to use Convex" but running the default app without an _generated fails because of imports like import { useQuery, useMutation } from '../convex/_generated/react'. I don't like generated code, so I am trying to avoid it, and when looking inside convex/_generated/react I can see useQuery = useQueryGeneric so in theory I can do import { useQueryGeneric as useQuery, useMutationGeneric as useMutation} from "convex/react";...

Hi BenG0837 The timeline is now 🙂

Hi @BenG. The timeline is now 🙂 Convex is ready for production use. If you have any use cases that fall outside the limits on our pricing page feel free to reach out directly and we can chat.

Customizing the Auth0 Login Page

so something like this i think: https://community.auth0.com/t/easy-way-to-change-text-on-default-login-screen/51342 but it looks like it wants us to call an API for this? I couldn't see any way to do it from the auth0 UI...

Riffle

big fan of this work, everything https://twitter.com/geoffreylitt does is great but this paper in particular is real good for thinking about the design of Convex.

cross-device link not permitted

More of a big deal, convex@0.3.x doesn't seem to work with an encrypted home directory (at least I'm guessing that's what's causing this error for me - see thread) 😢

Renaming project slugs

Is there a way to rename a project? I can rename it in the UI, but not the slug used in the convex.json, etc. Not a big deal just makes my eye twitch haha

Recursive + `any` schema types

Related questions: - Is there any way to define a recursive SchemaType? - Is there any way to describe an untyped field in a [typed] schema? Consider: ```ts export default defineSchema({...

JSON in Schemas

There isn't a way to describe JSON as a SchemaType, is there? I mean something like the following—except of course that it doesn't loop indefinitely! ```ts function json() { return s.union(...

Defining Convex functions

Could someone explain why the Convex functions have to return a function rather than returns the value directly? Asking for a friend.

filter vs withIndex

I'm encountering a very confusing querying bug, and I'm not sure whether it's an issue with Convex or my misunderstanding of the API 🤔

performance

I live In Chicago and the latency here seems pretty good 👀
No description

After upgrading to `0 3 0` I m seeing

After upgrading to 0.3.0 I'm seeing the following errors when running npx convex dev:

Searching in Convex

For now full table scan is how I'd go about it. We know that's going to fall down past a certain size of data but it's interesting (well I think so) to push the limits of that approach atm. There are several potential options, some involving egress to dedicated search infra services. Pragmatically you could denormalize the data, building a search index in Convex (another good candidate for a plug and play library) but we can provide something more convenient before long....

ProseMirror collab editing continued

tl;dr of what’s to follow: - I attempted to write a “plug-and-play” ProseMirror collaborative editing/React/Convex npm package. I encountered one pain point, but generally saw that it would be possible, and then gave up on it because I didn’t want to use React’s default state management solution and thus wouldn’t want to maintain a package built with it. - I re-implemented ProseMirror collaborative editing with Convex and a different state management strategy, and I don’t know why but unlike my first attempt, performance was really good!...

Reactive!

cool 😁 I was quite interested in the "reactive" branding you guys had. Is that based on the push/pull sub/pub model of "reactive" programming?

Manually creating Id objects

is there a way to convert a string into a document ID (e.g. into a GenericId<"table">)?

Are foreign key constraints a thing in

Are foreign key constraints a thing in Convex? What are the plans in general (if any) for supporting constraint definition on schemas?

db.insert return type

So I'm encountering the following error in my vscode:
Type 'GenericId<"submissions">' is missing the following properties from type '{ _id: GenericId<"submissions">; _creationTime: number; user: GenericId<"users">; application: GenericId<"applications">; submitted: boolean; fields: Map<...>; }': _id, _creationTime, user, application, and 2 more.
Type 'GenericId<"submissions">' is missing the following properties from type '{ _id: GenericId<"submissions">; _creationTime: number; user: GenericId<"users">; application: GenericId<"applications">; submitted: boolean; fields: Map<...>; }': _id, _creationTime, user, application, and 2 more.
Here's what I have: ``` return db.insert("submissions", { user: user._id,...

Deployment environments

Does Convex have any plans to support environments other than “Production” and “Development”? My particular interest in this moment is in the ability to spin up a staging deployment per feature development branch, as e.g. Netlify supports (https://docs.netlify.com/site-deploys/overview/).