ampp
CCConvex Community
•Created by DylanDev on 12/20/2024 in #support-community
Deleting Users from Backend Function that are Synced with Clerk
i use clerk/backend without 'useNode to do this - basically:
11 replies
CCConvex Community
•Created by Gamius on 12/19/2024 in #support-community
unique() query returned more than one result
Yeah uniqueness failing on null or undefined has got me a couple times from what i recall. Recently i had a promise.all insert that was inserting the same data twice bypassing the checks. Then that would cause a error on read as i was expecting one row but not using .first()
17 replies
CCConvex Community
•Created by Gamius on 12/19/2024 in #support-community
unique() query returned more than one result
Just with convex-ents otherwise you have to do it all manually. Generally you should design your code so there is only one insert command per table so you can enforce these things.
17 replies
CCConvex Community
•Created by David Alonso on 12/14/2024 in #support-community
Connect to multiple projects from the same nextjs app
Yeah i'm not doing unions so convex is completely unaware of the shape, i'm just keeping types in my own ORM for better or worse. With the various performance concerns and major difficulty in tracing down convex validation issues i could always add it later. We just have a table that is a external interface for all outside data in the world that could exist so we can run our algorithms against it. I need to start building components to handle the various displays of all this data so it would be nice to at least have default data shown as a best effort. In a ideal world someone could just send any object to our api and it would be processed, human-readable, and grouped.
33 replies
CCConvex Community
•Created by David Alonso on 12/14/2024 in #support-community
Connect to multiple projects from the same nextjs app
Assuming you make your system convex compatible. How well do you think you can handle tables that have a type string and a v.any() with possibly hundreds of shapes of data stored within it based on type?
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 was totally thinking it was 1 for the convex dashboard(that owns the list of the projects/deployments) and 2 was for the selected database? It sounds more like the dashboard data is exposed via a special API going across the same web-hook connection? Interesting for who want to get into meta levels. :convex:
33 replies
CCConvex Community
•Created by Squirble on 12/15/2024 in #support-community
Telegram Authentication
Nice, I'm curious are you using this to just verify the ownership of the telegram account so its like a private message or just to make it easy to login?
117 replies
CCConvex Community
•Created by David Alonso on 12/14/2024 in #support-community
Connect to multiple projects from the same nextjs app
interesting, i kept thinking that id not be able to dynamically specify a new ConvexReactClient but i guess that is what you are doing on the dashboard? The first provider tells the 2nd provider what client to load? But how do you feed the 2nd convex client its own API key. This seems tempting to use for our central coordinating server eventually..
33 replies
CCConvex Community
•Created by Squirble on 12/15/2024 in #support-community
Telegram Authentication
Basically, I equate what you are talking about as similar to the session tracking via client side sessionId storage helper (part of convex helpers), so instead of passing a session its passing a custom auth token to a custom context that handles the queries/mutations. With all the risks that that entails.
117 replies
CCConvex Community
•Created by Squirble on 12/15/2024 in #support-community
How to get `ctx` through indirection?
Its what i'm doing especially now that need to interface with many bots
10 replies
CCConvex Community
•Created by David Alonso on 11/30/2024 in #support-community
Cannot store/validate `undefined` in array?
Yeah, its not that. I was just showing i had 2 ways of creating. I'd like to repo somehow, this has been the only time I've seen a error that prevents the console logs from outputting
13 replies
CCConvex Community
•Created by David Alonso on 11/30/2024 in #support-community
Cannot store/validate `undefined` in array?
I think what is making this so hard is that both the console.log below in the function never output anything: so as far as im concerned the code is breaking before, but its only fixed if i fix the returned data or return void.
Uncaught Error: BadObject {bad object data} To learn about Convex's supported types, see https://docs.convex.dev/using/types.
13 replies
CCConvex Community
•Created by David Alonso on 11/30/2024 in #support-community
Cannot store/validate `undefined` in array?
ugg this one caught me again.. i now remember.. the mutation attempts to serialize my payload on the final return and if a sub sub object doesnt searlize right its mostly invisible to me. I don't use a return validator for performance reasons.
13 replies
CCConvex Community
•Created by David Alonso on 11/30/2024 in #support-community
Cannot store/validate `undefined` in array?
ive been indecisive about this object design and its screwed me over
13 replies
CCConvex Community
•Created by David Alonso on 11/30/2024 in #support-community
Cannot store/validate `undefined` in array?
Im wondering if one of my functions is serializing a field starting with a underscore..
13 replies
CCConvex Community
•Created by David Alonso on 11/30/2024 in #support-community
Cannot store/validate `undefined` in array?
Is there any way possible to get a line number on where the error is, my system is so complex now i cant find these, it takes at least a hour of placing console logs. One time it was a query was getting a object when i was looking for a insert. Or is there some general way to protect all convex functions from this. 😅
13 replies
CCConvex Community
•Created by Tiago Freitas on 12/4/2024 in #support-community
CRDT for text editors
Yeah i better listen to that before asking too many questions about the new Local Sync and peer to peer possibilities 🙂
38 replies
CCConvex Community
•Created by Tiago Freitas on 12/4/2024 in #support-community
CRDT for text editors
I need to a tool to sleuth all the repos so i can stay up to date 😅
38 replies
CCConvex Community
•Created by David Alonso on 11/29/2024 in #support-community
Exponential number of indexes required?
Well if you want to do "a book" sometime 😁 i know someone at O'reily Media, but i'm sure these contacts are super easy to find given they are in the same city
46 replies
CCConvex Community
•Created by Tiago Freitas on 12/4/2024 in #support-community
CRDT for text editors
Is there a link to a github repo or is it still private?
38 replies