---
title: "Krzysztof Szala (@AvantaR) | Hashnode"
description: "Krzysztof Szala (@AvantaR) writes on Hashnode. Read their latest articles and follow their work."
url: "https://hashnode.com/@AvantaR"
---

@AvantaR

# Krzysztof Szala

@AvantaR · Joined May 2021

## Comments

[Dario Ielardi Could u tell me how did you handle the relations typing? Due to this article: https://www.prisma.io/docs/concepts/components/prisma-client/advanced-type-safety/operating-against-partial-structures-of-model-types#problem-using-variations-of-the-generated-model-type We need to create different types, when we have relations in our models? Is there any convienient way to automatize this a bit?](https://hashnode.com/posts/migrating-a-large-production-app-from-typeorm-to-prisma/5fd88ee22444ad0ea851292b/comment/6149de34699fe76cd3486816#reply-614b3452544e242e0c93d151)

Reply · Article · Sep 22, 2021 · [Migrating a Large Production App From TypeORM To Prisma](https://hashnode.com/posts/migrating-a-large-production-app-from-typeorm-to-prisma/5fd88ee22444ad0ea851292b)

[I'm currently struggling with thoughts about migrating from TypeORM to another solution, and I found this article incredibly helpful! Thank you!](https://hashnode.com/posts/migrating-a-large-production-app-from-typeorm-to-prisma/5fd88ee22444ad0ea851292b/comment/6149de34699fe76cd3486816)

Comment · Article · Sep 21, 2021 · [Migrating a Large Production App From TypeORM To Prisma](https://hashnode.com/posts/migrating-a-large-production-app-from-typeorm-to-prisma/5fd88ee22444ad0ea851292b)

[Type Assertion can be helpful in unit tests, when you need to create some typed object, but you don't need all its properties. Otherwise, I try to avoid it because it is almost like typing things with any.](https://hashnode.com/posts/typescript-best-practices-1-always-prefer-type-declaration-over-type-assertion/612f7c04c21ac123ca3775b7/comment/6130d3720aac045e01493850)

Comment · Article · Sep 2, 2021 · [Typescript Best Practices #1 - Always prefer 'Type Declaration' over 'Type Assertion'](https://hashnode.com/posts/typescript-best-practices-1-always-prefer-type-declaration-over-type-assertion/612f7c04c21ac123ca3775b7)
