The cultured one
The cultured one
DTDrizzle Team
Created by The cultured one on 12/13/2023 in #help
Wierd error when trying to run drizzle studio
Sorry, I didn't notice the comment until now. I honestly can't remember but it was something small and stupid xD. Good for you!
9 replies
DTDrizzle Team
Created by The cultured one on 1/13/2024 in #help
Deletion causes error because it violates foreign key constraint when it shouldnt
(This issue is solved tho)
3 replies
DTDrizzle Team
Created by The cultured one on 1/13/2024 in #help
Deletion causes error because it violates foreign key constraint when it shouldnt
Turns out the issue I was having was some migrations were literally not applying so the db was out of sync with the schema. My bad!
3 replies
DTDrizzle Team
Created by The cultured one on 1/9/2024 in #help
Populate does not work for a certain case ('populate = with')
I would consider this solved but I dont know how to use the emote that makes this thread resolved.
9 replies
DTDrizzle Team
Created by The cultured one on 1/9/2024 in #help
Populate does not work for a certain case ('populate = with')
Sorry for jumping the boat and saying it's a drizzle problem when it was really a me problem 😛
9 replies
DTDrizzle Team
Created by The cultured one on 1/9/2024 in #help
Populate does not work for a certain case ('populate = with')
Basically I did a forEach(async stuff => {createstuff}) and what i shouldhave done was
//either one of these
await Promise.all(stuff.map(async thing => ...))
for (const thing of stuff) { await ... }

// Though Promise.all is probably more efficient
//either one of these
await Promise.all(stuff.map(async thing => ...))
for (const thing of stuff) { await ... }

// Though Promise.all is probably more efficient
9 replies
DTDrizzle Team
Created by The cultured one on 1/9/2024 in #help
Populate does not work for a certain case ('populate = with')
Ok I debugged this myself a bit more... Turns out I did some stupid stuff and I wasnt really awaiting the create instance operation to finish before moving on.
9 replies
DTDrizzle Team
Created by The cultured one on 1/9/2024 in #help
Populate does not work for a certain case ('populate = with')
I forgot to mention some populates work for example aditionalServiceInstance works just fine.
9 replies
DTDrizzle Team
Created by The cultured one on 1/9/2024 in #help
Populate does not work for a certain case ('populate = with')
And if you need to look inside the db with studio for example you can just run
yarn run studio
yarn run studio
at the root of the project
9 replies
DTDrizzle Team
Created by The cultured one on 1/9/2024 in #help
Populate does not work for a certain case ('populate = with')
drizzle-kit: v0.20.7
drizzle-orm: v0.29.1
drizzle-kit: v0.20.7
drizzle-orm: v0.29.1
9 replies
DTDrizzle Team
Created by The cultured one on 1/9/2024 in #help
Populate does not work for a certain case ('populate = with')
Let me know if you need more info from me to diagnose this.
9 replies