stephen
Explore posts from serversDTDrizzle Team
•Created by stephen on 4/15/2024 in #help
Query `with` returning no results?
Hi! Wondering if anyone can see what I'm doing wrong here...
I've got a
recipes
table that had a relation with recipeTags
which, in turn, is related to tags
.
I've got a query that's returning the correct recipes
, but the recipeTags
is empty:
I'm looking at: https://orm.drizzle.team/docs/rqb#find-many
5 replies
DTDrizzle Team
•Created by stephen on 3/21/2024 in #help
Schema is "wrong" resulting in "foreign key mismatch" error
I generated my sqlite schema using
drizzle
but now that I'm trying to use it, I'm getting a foreign key error.
Here's where it seems to error:
I added
4 replies
DTDrizzle Team
•Created by stephen on 3/15/2024 in #help
Studio: Not Enough Info to Infer Relation
https://www.answeroverflow.com/m/1180072254214766632
Running into this issue:
Any ideas? Based on the stack overflow, the suggestion is that the relationship isn't on both sides, but it seems like I do in this case, no?
11 replies
DTDrizzle Team
•Created by stephen on 3/13/2024 in #help
Creating migrations with Enums present (postgres)
Hi!
I'm new to
drizzle
but am trying to create migrations and running into troubles with the auto generation of migration files when an enum is present.
For example:
When I generate a migration (e.g., npx drizzle-kit generate:pg
), I get something like:
This fails however as "statusEnum" is not defined which means i need to make the following (manual) modifications to my migration file...
Is this anticipated? or is there a way to configure it so that these are done automatically?3 replies