David Alonso
CCConvex Community
•Created by David Alonso on 12/14/2024 in #support-community
Connect to multiple projects from the same nextjs app
Thanks for sharing! I was actually wondering how you did that. With Firestore indexes for all top level fields get created by default and users also have to create indices if they want to run a more complex query (even if it doesn’t need to be run very often) i’m wondering if you considered allowing complex queries by translating them to sql queries somehow though i have no idea if this is feasible on your side (it would probably lose realtime behavior at the very least)
33 replies
CCConvex Community
•Created by David Alonso on 12/14/2024 in #support-community
Connect to multiple projects from the same nextjs app
33 replies
CCConvex Community
•Created by David Alonso on 12/14/2024 in #support-community
Connect to multiple projects from the same nextjs app
not sure i quite understand, do you mean if you have unions types in your Convex tables? For Firestore (which is no-sql), we recursively infer the schema based on sample data so we could do something similar for Convex at the very least, but unions are definitely tricky to infer well
33 replies
CCConvex Community
•Created by David Alonso on 12/14/2024 in #support-community
Connect to multiple projects from the same nextjs app
are these functions open source/documented somehere? I assume it's things that allow you to apply filters for instance? I know there's a thread about this somewhere but asking cause if we want to integrate Fireview with Convex this would be useful
33 replies
CCConvex Community
•Created by David Alonso on 12/14/2024 in #support-community
Connect to multiple projects from the same nextjs app
ah okay and what about the input and output for the functions? I guess they are typed based on whatever folder
api
points to?33 replies
CCConvex Community
•Created by David Alonso on 12/14/2024 in #support-community
Connect to multiple projects from the same nextjs app
Does
client.query
have type safety?33 replies
CCConvex Community
•Created by David Alonso on 12/14/2024 in #support-community
Connect to multiple projects from the same nextjs app
I'm not sure about the file structure aspect... if you can actually do convex_a/ convex_b/
33 replies
CCConvex Community
•Created by David Alonso on 12/14/2024 in #support-community
Connect to multiple projects from the same nextjs app
This is what kapa on the Convex docs gave me:
Certainly! I'll explain how to use the ConvexReactClient to communicate between different Convex projects in a React application. The approach is similar to using the ConvexClient, but it's tailored for React components.
Here's how you would set this up using the ConvexReactClient:
1. First, you need to create separate ConvexReactClients for each project:
2. Then, you need to wrap your app with ConvexProviders for each client:
3. In your React components, you can use the
useQuery
:
Remember that this approach still requires you to manage authentication and security between the projects. Also, you'll need to ensure that you're using the correct client for each project's API.
For more detailed information on using the ConvexReactClient, you can refer to the Convex React documentation.
This setup allows you to interact with multiple Convex projects within a single React application, but keep in mind that each project still maintains its own separate backend and database.33 replies
CCConvex Community
•Created by David Alonso on 12/15/2024 in #support-community
`too many open files` when running `expo start` in Convex RN template
Fixed with watchman
2 replies
CCConvex Community
•Created by David Alonso on 12/14/2024 in #support-community
Connect to multiple projects from the same nextjs app
There’s another experimental idea i have this could be interesting for, where some code is generated on behalf of the parent project that gets pushed and used in a child project which gets called in the same app
33 replies
CCConvex Community
•Created by David Alonso on 12/14/2024 in #support-community
Connect to multiple projects from the same nextjs app
Some of the data is stored in our convex db (eg dashboard config) but the actual data in the dashboard is coming from customers
33 replies
CCConvex Community
•Created by David Alonso on 12/14/2024 in #support-community
Connect to multiple projects from the same nextjs app
We wanna show data in a single page coming from different projects (similar to what we do for different Firestore projects already)
33 replies
CCConvex Community
•Created by David Alonso on 12/14/2024 in #support-community
Connect to multiple projects from the same nextjs app
33 replies
CCConvex Community
•Created by David Alonso on 12/11/2024 in #support-community
Debounce calls to a mutation without doing so for the optimistic update
I can't ask for better answers, you guys rock! 🤘
10 replies
CCConvex Community
•Created by David Alonso on 12/11/2024 in #support-community
Debounce calls to a mutation without doing so for the optimistic update
will take a look! thanks for sharing 🙏
10 replies
CCConvex Community
•Created by David Alonso on 12/11/2024 in #support-community
Debounce calls to a mutation without doing so for the optimistic update
Where can i find the pattern in your repo?
10 replies
CCConvex Community
•Created by David Alonso on 12/11/2024 in #support-community
Debounce calls to a mutation without doing so for the optimistic update
Would love to see a bit more here: https://github.com/get-convex/prosemirror-sync/blob/main/example/convex/example.ts, probably in the works...
10 replies
CCConvex Community
•Created by David Alonso on 12/11/2024 in #support-community
Debounce calls to a mutation without doing so for the optimistic update
10 replies
CCConvex Community
•Created by khromov on 5/26/2023 in #support-community
GDPR compliance?
If we want to get certified on Vanta ourselves, it would be extremely useful for there to be a Convex integration with them (just like they do with e.g. Supabase and other BaaS providers). Are there any plans for this? I'm not sure if others have requested this
17 replies
CCConvex Community
•Created by David Alonso on 12/10/2024 in #support-community
Full-text search across fields in different tables
i wonder if an algolia component is something that you or anyone has considered
10 replies