Hi, I have a group by and I'm trying to load the ...
# orm-help
r
Hi, I have a group by and I'm trying to load the relationship as well. In the
findMany
we can do
include
but how can I do it in
groupBy
?
r
@Roy Segall ๐Ÿ‘‹ Unfortunately, including relations isnโ€™t supported yet. It would be great if you could add a ๐Ÿ‘ to this request so that we can know the priority ๐Ÿ™‚ As a workaround, you can use a raw query.
r
Hi @Ryan and thanks for the quick comment ๐Ÿ™ Though I'm familiar with SQL i suspect that writing the custom would be wrong ๐Ÿ˜ Regrading the suggestion - do we have a way to do migration with custom code? When I'm changing a data structure I'm creating migration files which Prisma knows to execute. But, what about custom code migration such as data manipulation (deleting a content after removing a field) Is that a requested feature as well or can I add it to the list?
r
Yes thereโ€™s a request for that here ๐Ÿ™‚