sten
Explore posts from serversDTDrizzle Team
•Created by 26thavenue on 1/4/2024 in #help
Error using the query param
The relations are exported from the schema so I would assume they're also imported.
When I make a db call, I simply reference teh D1 instance on
event.locals.D1
that is previously setup.16 replies
DTDrizzle Team
•Created by 26thavenue on 1/4/2024 in #help
Error using the query param
I'm not type expert here
16 replies
DTDrizzle Team
•Created by 26thavenue on 1/4/2024 in #help
Error using the query param
drizzle return type is :
DrizzleD1Database<typeof schema>
16 replies
DTDrizzle Team
•Created by 26thavenue on 1/4/2024 in #help
Error using the query param
But I am missing the schema... so I guess I need to add it there
16 replies
DTDrizzle Team
•Created by 26thavenue on 1/4/2024 in #help
Error using the query param
This is in one of the sequences in hooks.server.ts in sveltekit
event.locals.D1 is defined in my
app.d.ts
file under Platform and Locals interface
Defined as D1: DrizzleD1Database;
16 replies
DTDrizzle Team
•Created by 26thavenue on 1/4/2024 in #help
Error using the query param
You mean what I export from
$lib/db/schema
?16 replies
DTDrizzle Team
•Created by 26thavenue on 1/4/2024 in #help
Error using the query param
@Angelelz, I am seeing many posts of this for some reason.
This is essentially my code. Importing the schema to drizzle, exporting a user and its relationship.
For some reason vscode is complaining about this
Property 'users' does not exist on type 'DrizzleTypeError<"Seems like the schema generic is missing - did you forget to add it to your DB type?">'.ts(2339) anyThis is not a big problem since the code work itself, it's just typescript that complains, but it would be nice to see that everything is properly setup 🤓
16 replies
DTDrizzle Team
•Created by hexcowboy on 1/24/2024 in #help
not getting proper type inference on any queries
Hey I got the same issue, did you resolve this?
2 replies
CDCloudflare Developers
•Created by sten on 2/5/2024 in #pages-help
How to serve javascript files (as third party lib)
That's sounds super simple! I'll definitely do that. Thanks @ScottF
3 replies