Eternal Mori
Eternal Mori
Explore posts from servers
CCConvex Community
Created by Eternal Mori on 4/11/2025 in #support-community
Cant see logs of actions called inside my workflow
The schedular was stuck
2 replies
CCConvex Community
Created by sbkl on 4/10/2025 in #support-community
Using 5MB excel file from convex file storage: Your request couldn't be completed. Try again later
Cant you use migrations or workflow to omit the time limit?
8 replies
DTDrizzle Team
Created by Eternal Mori on 3/16/2024 in #help
drizzle-kit push error: Multiple primary key defined
My database and table in this example are using MariaDB with collation: utf8mb4_general_ci. When I use MySQL with utf8mb4_0900_ai_ci I dont experience this error.
3 replies
TtRPC
Created by nitestack on 8/26/2023 in #❓-help
Next.js app router + TRPC...how to set it up?
See the code from the T3 Turborepo. https://github.com/t3-oss/create-t3-turbo
7 replies
TTCTheo's Typesafe Cult
Created by Eternal Mori on 7/16/2023 in #questions
Handling Long-Running Server Functions in Next.js: Seeking Alternatives to Vercel Time Limits
Thanks @nyx (Rustular DevRel) for your suggestion, I will do my research!
8 replies
TTCTheo's Typesafe Cult
Created by Eternal Mori on 7/16/2023 in #questions
Handling Long-Running Server Functions in Next.js: Seeking Alternatives to Vercel Time Limits
Do you mean sst.dev?
8 replies
DTDrizzle Team
Created by Dustin@WunderGraph on 7/12/2023 in #help
How to do conditional joins with the query builder?
All equels with a undefined value are ignored
18 replies
DTDrizzle Team
Created by Dustin@WunderGraph on 7/12/2023 in #help
How to do conditional joins with the query builder?
Here is a where clause with conditional params:
.where(
and(
channel ? eq(s.tickets.channelId, channel) : undefined,
status ? eq(s.tickets.status, status) : undefined,
eq(s.channels.organizationId, organizationId)
)
)
.where(
and(
channel ? eq(s.tickets.channelId, channel) : undefined,
status ? eq(s.tickets.status, status) : undefined,
eq(s.channels.organizationId, organizationId)
)
)
18 replies
DTDrizzle Team
Created by Eternal Mori on 7/12/2023 in #help
How to implement a where clause on a joined table with the new relation builder?
Now I created almost an indentical output with the new builder. But now the problem is that I dont know how to filter on a joined table. in this example on "ticket.channel.organizationId". That part is missing here. How can I implement the filter?
const ticket = await db.query.tickets.findFirst({
columns: {
id: true,
status: true,
},
with: {
channel: {
columns: {
id: true,
type: true,
name: true,
organizationId: true,
},
},
contact: {
columns: {
id: true,
name: true,
email: true,
},
},
messages: {
columns: {
id: true,
subject: true,
text: true,
html: true,
createdAt: true,
},
},
},
where: (table, { and, eq, sql }) => and(eq(table.id, params.id)),
});
const ticket = await db.query.tickets.findFirst({
columns: {
id: true,
status: true,
},
with: {
channel: {
columns: {
id: true,
type: true,
name: true,
organizationId: true,
},
},
contact: {
columns: {
id: true,
name: true,
email: true,
},
},
messages: {
columns: {
id: true,
subject: true,
text: true,
html: true,
createdAt: true,
},
},
},
where: (table, { and, eq, sql }) => and(eq(table.id, params.id)),
});
4 replies
TTCTheo's Typesafe Cult
Created by Wildhide on 7/11/2023 in #questions
TRPC server side prefetching not working properly
because you added these later?
5 replies
TTCTheo's Typesafe Cult
Created by Wildhide on 7/11/2023 in #questions
TRPC server side prefetching not working properly
Arent the database records corrupt or do the new column createdAt has default values for datetime?
5 replies
TTCTheo's Typesafe Cult
Created by whizzy on 7/10/2023 in #questions
Anyone know how to connect to custom domain?
You can also use a CNAME record like pagwin said, but set it up with a providers API. for example, you can create new domains and set a CNAME record with the vercel API so your users dont have to set it up!
15 replies
TTCTheo's Typesafe Cult
Created by Coded_58 on 7/11/2023 in #questions
Testing and Debugging Next.js13 apps for production
These are the best video's from Theo that gave me answers to these questions: https://www.youtube.com/watch?v=ZGKGb109-I4 https://www.youtube.com/watch?v=FF50H2RWaEY
4 replies