MadMax
Explore posts from serversTTCTheo's Typesafe Cult
•Created by Mike Pollard on 1/23/2024 in #questions
Is the backend of this stack a lambdalith (lambda monolith) when hosted serverless?
all the stuff is done in a one lambda api pages everything
6 replies
TTCTheo's Typesafe Cult
•Created by JulieCezar on 1/26/2024 in #questions
Relations using Drizzle and Planetscale
firstly planetscale does support foreign key constraints
for relations you have to define them both ways
user -> many posts
post -> one user
that way its kind of guranteed that you are getting and inserting right data depends upon if you did it correctly
all your other points relate to data access patterns which is upon you to implement correctly
read drizzle docs they are great
5 replies
TTCTheo's Typesafe Cult
•Created by Chen on 1/18/2024 in #questions
Running TSC on tRPC client runs type checking on tRPC server
@Scythern you should create separate files for handler and router and router file should only export types nothing else like
3 replies
TTCTheo's Typesafe Cult
•Created by MadMax on 11/27/2023 in #questions
Getting role undefined in session even though it exist in db
at drizzle adapter im getting
7 replies
TTCTheo's Typesafe Cult
•Created by MadMax on 11/27/2023 in #questions
Getting role undefined in session even though it exist in db
7 replies