Implementing a "Prisma model converter middleware"
Bit of a fancy name, but if you've ever worked with Symfonys param converters (especially the DoctrineParamConverter) you get the idea. It's basically just automatically converting input to models.
Currently trying to implement this, but can't find a way for proper types. Implementation so far:
Unfortunately I can't come up with a solution to knowing the types here. Anyone got some ideas 🙂 ?
4.8KMembers
View on DiscordMore Posts
Senior Full Stack Developer is Ready.✍️ Skill Set
HTML/CSS/JS, TS
React/Next.js, Angular/RxJs, Tailwind CSS
WoSuggested way to invalidate queries on a component that is used on multiple pages.Please suggest me a way I can handle the following situation in the best possinle manner.
CoinsiderSetting up trpc behind AWS API gateway and authorizing using a lambdaCurrent setup:
- trpc api, containing both public an private procedures. Let's call them `posts.listsetMutationDefaults for optimistic updatesI have a `preferences` router, with a `get` query and a `set` mutation. I had optimistic updates set