Paul
09/22/2022, 1:20 PMwhere = { path: folderId !== null ? { has: folderId } : undefined }But when I am at the root, I get all the files and folders. When I query in psql:
select id, name, path from dam_file where path is null;Then I only get the data that’s at the root level of the directory. How do I ensure I am duplicating the psql for a Prisma query? Thanks
Paul
09/22/2022, 1:34 PMPaul
09/22/2022, 1:34 PMwhere = { path: folderId !== null ? { has: folderId } : { equals: null } }
Nurul
09/22/2022, 4:56 PM