whoami
CCConvex Community
•Created by whoami on 6/12/2023 in #support-community
Can I do langchain streaming in convex?
Haven't tried that yet but wanted to know if that's possible with convex actions
3 replies
CCConvex Community
•Created by whoami on 6/12/2023 in #support-community
convex helpers need to be updated with convex 0.16
2 replies
CCConvex Community
•Created by whoami on 5/28/2023 in #support-community
Refresh clerk auth token when I switch orgs
I am encountering an issue when attempting to implement row level security with your recommended approach. I've taken the step of feeding the org_id to the gender field in the JWT provided by the clerk. However, I am finding that the token is not refreshing immediately after switching organizations.
In my code, I switch the organization, which prompts the clerk hook to reflect the change:
As expected,
org?.id
is passed to the query reactively when I switch organizations. However, I've noticed that the JWT's gender field, where I've assigned the org_id
, doesn't appear to refresh to the new organization's ID in sync. This discrepancy is causing my chat list to return as empty.
Here's my query code
Here is my RLS code
I need the JWT to refresh immediately after an organization switch to ensure the correct data is being accessed.7 replies
CCConvex Community
•Created by whoami on 5/22/2023 in #support-community
Langchain + convex action
While langchain's
pdf-loader
works with use node
directive, my following code won't work in both js and node env.
and the error is
any insights?2 replies
CCConvex Community
•Created by whoami on 5/21/2023 in #support-community
Internal error for getting blob from storageId in node runtime
I was trying
langchain/document_loaders
with javascript runtime, that didn't work out so I turned myself to the node runtime, this time I got
3 replies
CCConvex Community
•Created by whoami on 5/21/2023 in #support-community
Receiving JWT fields beyond what UserIdentity provides
Hi team, we tried to implement RLS with clerk provided auth fields, I wanted to know is there any plans extending
auth.getUserIdentity()
to receive fields other than what UserIdentity
provides? Passing org_id
to gender
field sounds like a hack but I suppose there should be a better way?
Also we've found that when passing whatever clerk values to address
fields like
address: {{org.id}}
the auth will crash, not sure if there is any bug associated with clerk or convex.3 replies
CCConvex Community
•Created by whoami on 5/20/2023 in #support-community
Does convex work with collaborative editing?
So I was considering building a collaborative editing, ideally what something like liveblocks provides. Since you have an option for optimistic update, I am curious if you folks have done similar demo before and what is your approach with conflict resolution.
14 replies
CCConvex Community
•Created by whoami on 5/18/2023 in #support-community
Bad URL errors "WebSocket closed unexpectedly with code 1006" in vercel preview env + convex dev
16 replies
CCConvex Community
•Created by whoami on 5/17/2023 in #support-community
Convex Compatibility Issue with Certain Browser Plugins
10 replies
CCConvex Community
•Created by whoami on 5/17/2023 in #support-community
Async request in Python client
Is it supported?
4 replies
CCConvex Community
•Created by whoami on 5/16/2023 in #support-community
Too many open queries
Unhandled Runtime Error
Where did I do wrong? Here is my mutation that causes the error (I think) My code might be messy so any advices not related to the issue but related to my convex code in general is appreciated as well
14 replies
CCConvex Community
•Created by whoami on 5/15/2023 in #support-community
Use `v.` schema to validate object types?
How do I use the
v.
schema defined in schema.ts
and use it to validate typescript object types? So I do not need to define a zod schema again, or maybe you will support zod schema in the future?11 replies
CCConvex Community
•Created by whoami on 5/11/2023 in #support-community
Firefox can’t establish a connection to the server at wss://.../api/0.14
I am frequently getting this the error in the title while developing with convex along with
17 replies
CCConvex Community
•Created by whoami on 5/7/2023 in #support-community
Is there a way to get the progress of file uploading in convex storage?
Something like this, provided by upload.io
15 replies
CCConvex Community
•Created by whoami on 5/7/2023 in #support-community
Supporting cascades delete in convex?
As I was searching for the cascades keyword in the channel, I there was a discussion on the case
https://discord.com/channels/1019350475847499849/1067581483243544627/1067584500063817729
I am wondering if you guys have any plans / roadmap on supporting this and many other features that are commonly available in relational database. I know there is a no free lunch theorem, but I simply believe with convex or any fast evolving infrastructure of the future, we can have our cake and eat it too : )
6 replies
CCConvex Community
•Created by whoami on 5/7/2023 in #support-community
Staging environment for convex?
I love how individual developers got their own dev environment with convex, the developer experience has never been easier, this is great! Any suggestions on the best practice for handling staging environment before the manual push to the production?
local / preview / production
7 replies
CCConvex Community
•Created by whoami on 5/6/2023 in #support-community
Passing clerk generated token to python client?
I generated a token from clerk in react and passed it to a Python service
These are errors I got
I am using dev env and I am pretty sure the url I used in both frontend and backend is consistent. And what's more interesting is, when I removed
convex.set_auth(token)
, the code ran through. I am really confused right now, what are we doing with the token if this is not required? Why providing a token will instead lead to the auth failure?37 replies
CCConvex Community
•Created by whoami on 5/5/2023 in #support-community
How to do convert between Id in string format and `Id<'...'>`?
Question is in the title
25 replies
CCConvex Community
•Created by whoami on 4/17/2023 in #support-community
Best practice for modeling many to many, one to many relationships as in relational database
I am looking for examples/demos on modeling such relationships and queries at ease, but didn't find much mentioning those in the doc. I am looking for prisma like API to assist me queries like
get me the most recent posts along with their user's email address
, if there are anything sample demo project link you can provide me with, I am more than appreciated.12 replies
CCConvex Community
•Created by whoami on 4/17/2023 in #support-community
Usage in Python client
Is there any detailed example/demo on python client? How do I pass
Id<Chat>
in python client?
This is my function definition under convex/ask.ts
and I was trying to call it in Python via
but got no luck
6 replies