Alex DB
Explore posts from serversDTDrizzle Team
•Created by Alex DB on 11/27/2024 in #help
Get type of raw sql record
I want to use Supabase webhooks (https://supabase.com/docs/guides/database/webhooks) but I'm struggling to type the payloads. Is there a way to access the raw sql record type from a drizzle schema, before renaming?
i.e. if my schema is
{firstName: text("first_name").notNull()}
the type would be {first_name: string}
.1 replies
NNovu
•Created by Alex DB on 10/9/2024 in #💬│support
Add/hydrate subscriber email in a custom step
This section of the docs mentions
You can also pass only the subscriberId during a request, and hydrate the data directly from your database or other sources during the trigger execution. This is useful when you don’t want to store all the subscriber data in Novu.I'd like to do this, specifically to pass only my subscriber id in the payload and get the email from my db in the workflow itself. I'm not sure how to do so, anyone knows?
5 replies