Hey guys, I'm relatively new to the coding world a...
# orm-help
c
Hey guys, I'm relatively new to the coding world and while I really enjoy Prisma, I'm struggling with finding a way to write things cleanly. For example when I do a nested save or create, I'm not sure how best to do that cleanly. Is it a general principle to pass back the same structure from the front end to the back end? What do I do if I need to change that structure? I'm not really sure where to go or what to google when it comes to these topics of cleanly manipulating data and where in the workflow I should actually do the manipulation. Should this be a class of some sort where I pass back the formatted data? I have an example of my code in the thread Any resources and help would be greatly appreciated.
r
@Chris King 👋 Either one of these works. You can create functions like these and pass them to
data
. Objects are not exactly necessary as functions here would do that same job 🙂
c
Hey Ryan, thanks for the response, what is your workflow when it comes to nested writes? Would love to get your opinion, or even some code example of how you like to do it. 😄