RangeError: Maximum call stack size exceeded - When I try to INSERT
Hi,
I am getting 
RangeError: Maximum call stack size exceeded when I try to INSERT something in the DB, SELECT queries works with no issues.
I am using "drizzle-orm": "^0.25.3" and "@remix-run/react": "^1.15.0".
I have a page to add an organization with the following action:
putOrg functions in a server.ts file:
when this line get executed, I get the following error:
org schema is defined here:
I think the issues I am having is similar to this: https://discord.com/channels/1043890932593987624/1092908217983578184 but I am not 100% sure.
Any help is much appreciated.
Thanks4 Replies
@macvim Could you try to simply execute an select statement with filter like:
await db.select().from(users).where(eq(users.id, 42));
If you get the same error it‘s related to https://discord.com/channels/1043890932593987624/1092908217983578184 like you mentioned
@s1njar I have this select statement that works:
I guess then it‘s not related to this issue https://discord.com/channels/1043890932593987624/1092908217983578184
anything wrong I am doing with my implementation?
It took me a while to figure this out, but the issue was not related to Drizzle. for the ID, I was using 
uuidv4 package, after switching to uuid I was able to run my statement.