How can I use plain object instead of composite types ?
Hi,
We were using Prisma v4.10.0 in ou project and we upgraded to 4.16.0 in order to use the new $extends() features
Problem :
When we updated to 4.16, all of our code broke because now, our mongo's embedded documents are defined as "composite types" with the following struct :
It's a huge pain because before we had the plain object directly and we could do something like :
now :
Any idea if there is an option to go back to old way ?
We were using Prisma v4.10.0 in ou project and we upgraded to 4.16.0 in order to use the new $extends() features
Problem :
When we updated to 4.16, all of our code broke because now, our mongo's embedded documents are defined as "composite types" with the following struct :
{ objects : {}, scalars: {}, composites: {} }It's a huge pain because before we had the plain object directly and we could do something like :
const user = await prisma.user.find();
console.log(user.profile.name)now :
const user = await prisma.user.find();
console.log(user.profile.scalars.name)Any idea if there is an option to go back to old way ?