Hohai, there used to be a `_typeMeta` field availa...
# orm-help
w
Hohai, there used to be a
_typeMeta
field available on GCF, which was replaced by
aggregate
now on Prisma. The thing is, when you had a one-to-many relationship, that
_typeMeta
was available inside the “many” relationship, allowing to query how many items were linked to that type. As instance, let’s say I have a
Brand
type and a
Product
type, linked by a one-to-many. We used to be able to query something like
allBrands { id _productsMeta }
, allowing for instance, to prevent from deleting a
Brand
that had `Product`s linked to it
if _productsMeta > 0
. How are we supposed to do the same with Prisma ?
n