Ville
01/06/2021, 10:35 AMSELECT * FROM somewhere;
queries. I wonder how it works in more advanced use cases and so on. I've read this: https://www.prisma.io/docs/about/limitations which is a great start but does not contain that much information.Ryan
01/06/2021, 10:42 AMgroupBy
.
There are some operations currently not supported/partially supported and a couple of examples for those would be something like cascade deletes and counting for relation fields. You can get a better idea by viewing the open feature requests here.
You would only need to resort to raw queries for cases like the above (counting relation fields) and for types not supported by Prisma i.e. Postgis Geospatial types.
We have all the operators and supported operations in the docs so you can get a better idea 🙂Ville
01/06/2021, 10:57 AMRyan
01/06/2021, 11:00 AMRichard Ward
01/06/2021, 11:10 AMraw
for have been when using COALESCE
and WITH
in queries, the rest has been through Prisma.
(I see I need to update some raw select count *
queries to use the aggregates..)Ville
01/06/2021, 11:35 AMRyan
01/06/2021, 11:39 AMjson
and jsonb
types and basic querying for those. Advanced filtering is not yet supported directly but we have a request for that.Richard Ward
01/06/2021, 11:49 AMconst myStuff = await prisma.$queryRaw<StuffType>(theQuery);
Ville
01/06/2021, 12:13 PMRichard Ward
01/06/2021, 1:18 PM