Twendy1
CCConvex Community
•Created by Twendy1 on 9/22/2024 in #support-community
Quering random row
Hey, yes, that would be nice!
20 replies
CCConvex Community
•Created by Twendy1 on 9/22/2024 in #support-community
Quering random row
I would assume that if field has unique tag then Convex would return error by default in case of same float (1 in db and 1 in new create)
20 replies
CCConvex Community
•Created by Twendy1 on 9/22/2024 in #support-community
Quering random row
What would be a chance to get 2 same random float numbers? I assume super small)
20 replies
CCConvex Community
•Created by Twendy1 on 9/22/2024 in #support-community
Quering random row
@djbalin Hey, thank you for your feedback! I will try to build a simple prototype and then write back)
20 replies
CCConvex Community
•Created by Twendy1 on 9/22/2024 in #support-community
Quering random row
Thank you!🙏
20 replies
CCConvex Community
•Created by Twendy1 on 9/22/2024 in #support-community
Quering random row
I was thinking about using a different service where I could save Convex document ID and then use SQL Random command
20 replies
CCConvex Community
•Created by Twendy1 on 9/22/2024 in #support-community
Quering random row
What if it's gonna be more than 500?
20 replies
CCConvex Community
•Created by Twendy1 on 9/22/2024 in #support-community
Quering random row
I had an idea to have an unique field with int value and then have index. Each value would be 0, 1, 2 and etc. So that way I could just do Math.random and then use index in order to find the document but I'm not sure if it's the best way
20 replies
CCConvex Community
•Created by Gorka Cesium on 4/4/2024 in #support-community
intermitent failure Clerk: `const identity = await ctx.auth.getUserIdentity();`
Hello, is this issue supposed to be pinned in Support channel instead of Convex Search? @Michal Srb
93 replies
CCConvex Community
•Created by Twendy1 on 3/30/2024 in #support-community
Auth API key
@Michal Srb Hi, may I ask if HTTP actions counts like "actions" inside Convex plan usage? (Or it counts as functions calls)
5 replies
CCConvex Community
•Created by Twendy1 on 3/30/2024 in #support-community
Auth API key
I know, I was wondering from security standpoint and if there are any good examples of it. The creation with hash is fine but I'm not sure how to make validation correctly and if I need any special things
5 replies
CCConvex Community
•Created by Llabe on 3/28/2024 in #general
Server fetchQuery and fetchMutation
Hey, if you are using nextjs you can also call queries and mutations on the server side. For that use preloadQuery (in order to have real time) or fetchQuery/fetchMutation (will be without real time). For Auth you need to send your Auth token inside query params. Docs and examples - https://docs.convex.dev/client/react/nextjs/server-rendering
3 replies
CCConvex Community
•Created by Twendy1 on 3/27/2024 in #support-community
Shared types in Schema
Thank you!
3 replies
CCConvex Community
•Created by vector on 3/21/2024 in #general
Next on Convex
I'm just curios because in my case the app has client portal and own http api (all based on Convex), so I would assume that if Convex calculates server fetches as http actions - it would be better for me to use as much client components as possible in order to save money (so that way web portal can use queries limit and api can use actions hours)
But again, might dummy topic, sorry about that.
15 replies
CCConvex Community
•Created by vector on 3/21/2024 in #general
Next on Convex
I have one more question which is might be very dummy but still (sorry for stealing this thread for own questions) - in the docs it says that fetchQuery/fetchMutation and etc using HTTP client under the hood, will those calls calculated as queries/mutations inside pricing plan or as actions? Because if you want to create HTTP api with Convex - you need to use actions (as far as I understood) and not queries, so I was always confused with that moment inside docs for server components.
15 replies
CCConvex Community
•Created by vector on 3/21/2024 in #general
Next on Convex
Yap, sorry, just read your previous message again and noticed the end) I was just confused because I read docs (which you sent) but I think message didn't mention it🫣
15 replies
CCConvex Community
•Created by vector on 3/21/2024 in #general
Next on Convex
Hey, just wanted to double check - we won't have reactivity if we are using preloadQuery on the server components?
15 replies
CCConvex Community
•Created by Twendy1 on 3/13/2024 in #support-community
Set dynamic key in v.object inside database schema
Thank you! Gonna try 🙂
8 replies
CCConvex Community
•Created by Twendy1 on 1/30/2024 in #support-community
How to implement new message arrival in the channel
Hey, thank you! Gonna try to implement it! 🙂
4 replies