I am working on a side project that requires me to sort by closest locations but I can not seem to find a way to do the following with Prisma.
SELECT * FROM Locations ORDER BY ABS(lat - $userLat) + ABS(lng - $userLng) ASC
Any help would be much appreciated, thanks.