finn
finn
DTDrizzle Team
Created by finn on 6/23/2023 in #help
different `where` but same return type for relational queries?
especially since it's rather long
11 replies
DTDrizzle Team
Created by finn on 6/23/2023 in #help
different `where` but same return type for relational queries?
so essentially i'm wondering how i can avoid repeating exactly the same with like 10 times
11 replies
DTDrizzle Team
Created by finn on 6/23/2023 in #help
different `where` but same return type for relational queries?
so the only difference between all these queries is what's inside the where
11 replies
DTDrizzle Team
Created by finn on 6/23/2023 in #help
different `where` but same return type for relational queries?
i.e., the with section
11 replies
DTDrizzle Team
Created by finn on 6/23/2023 in #help
different `where` but same return type for relational queries?
but posts are some abstract object that are made up of other columns and relations
11 replies
DTDrizzle Team
Created by finn on 6/23/2023 in #help
different `where` but same return type for relational queries?
basically i have quite a few queries that return posts
11 replies
DTDrizzle Team
Created by finn on 6/23/2023 in #help
different `where` but same return type for relational queries?
is there a part of my post that didn't make sense?
11 replies
DTDrizzle Team
Created by Noahh on 6/22/2023 in #help
Filtering findMany using related records
is this in the docs somewhere now btw?
19 replies
DTDrizzle Team
Created by finn on 6/23/2023 in #help
different `where` but same return type for relational queries?
if there’s no good way to do this would you mind letting me know either way?
11 replies
DTDrizzle Team
Created by finn on 6/23/2023 in #help
different `where` but same return type for relational queries?
any ideas?
11 replies
DTDrizzle Team
Created by ijd on 6/23/2023 in #help
Optional filtering
probably less ideal
10 replies
DTDrizzle Team
Created by ijd on 6/23/2023 in #help
Optional filtering
but yeah
10 replies
DTDrizzle Team
Created by ijd on 6/23/2023 in #help
Optional filtering
you might need to transform it via json
10 replies
DTDrizzle Team
Created by ijd on 6/23/2023 in #help
Optional filtering
but if that works then cool
10 replies
DTDrizzle Team
Created by ijd on 6/23/2023 in #help
Optional filtering
might need sql.raw() idk
10 replies
DTDrizzle Team
Created by ijd on 6/23/2023 in #help
Optional filtering
or something similar
10 replies
DTDrizzle Team
Created by ijd on 6/23/2023 in #help
Optional filtering
you could probably do this as well
sql`${args.documentId} = null`
sql`${args.documentId} = null`
10 replies
DTDrizzle Team
Created by Noahh on 6/22/2023 in #help
Filtering findMany using related records
whenever you have time i’d love that thanks
19 replies
DTDrizzle Team
Created by Noahh on 6/22/2023 in #help
Filtering findMany using related records
that’s ok
19 replies
DTDrizzle Team
Created by Noahh on 6/22/2023 in #help
Filtering findMany using related records
i’d really appreciate some more complex examples (as i imagine OP would). i’ve been trying to figure it out in my thread
19 replies