Glorrin
Explore posts from serversDTDrizzle Team
•Created by Glorrin on 11/23/2023 in #help
need help to optimise a query
[schema in first comment]
I want to get an object like this:
I have an eventId, and a userId
event should only be the one associated with eventId (that's easy)
eventCharacters should be filtered with eventCharacters.character.userId = userId
This I have no clue on how to do it with findFirst
This is not a proper way to make a query but I hope it reprensents what I need
I could go the select way but then I will have an array with event.name repeated many times and event characters repeated for each softReserves.
I am not sure if I should do 2 or 3 queries and recombined or if only 1 would be fine
Is there some kind of good practice guide around ?
I tried this:
2 replies
DTDrizzle Team
•Created by Glorrin on 11/10/2023 in #help
Another SSL error on import
I have an existing database and I wanted to try drizzle on it. Database is from a lesser known provider and is impossible to find reliable help to access it, but unfortunately I cannot change it.
I want to use
drizzle-kit introspect:pg
here is my drizzle.config.ts
I also tried connectionString:
${env.DATABASE_URL}?ssl{"rejectUnauthorized":true},
and prety much every permutation between those 2 I could find but I always have the same error :
I tried the answers from the other SSL posts in this discord but unfortunately nothing I tried worked.1 replies