Pulse Type
Is there a good way to get the type of a Prisma Client instance with Pulse before instantiating it?
For context, I have a class that will eventually have a member populated with a Pulse DB instance:
10 Replies
Currently I'm doing this to get that type but am not sure if this is a good way to do it:
Hey @Sabin Adams ๐
Hope you are doing great! ๐
Your approach looks good. I am not aware of any other way.
An alternative you may consider is doing something like:
Thanks!
The
ReturnType
approach is my go-to for getting the type of any extended Prisma Client. Let us know what you think of Pulse ๐Thanks! Itโs powering my dbchange service that keeps the db and Algolia in sync ๐
No problems so far other than spending a bunch of time with different dbโs trying to get it to work with pulse. A lot of the docs and integrations seemed out of date
Finally got it working with Supabase (not sure how, just started working ๐คท๐ป)
A lot of the docs and integrations seemed out of datePrisma docs or database vendor docs?
Prisma docs
Hey @Sabin Adams ๐๐พ , hope you're doing well ๐ !
A lot of the docs and integrations seemed out of dateCould you share which part of the docs did you find out to be outdated ๐๐พ ?
Mostly the integration docs for Pulse. Specifically for Neon and Railway. The Railway integration doesnโt run (unless I goofed) and the Neon UI is different from whatโs shown in the docs
I can give more specifics when Iโm at a computer ๐
For the record, once I got things working itโs been seamless :heart:
Thanks @Sabin Adams !