From 5be3c38b6458fed58fd620334fb57ba5179117b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A1=94=E5=AD=90=E6=9C=89=E7=82=B9=E9=85=B8?= Date: Mon, 22 Nov 2021 22:56:55 +0800 Subject: [PATCH] fix: includes properties undefined error (#32) --- src/adapters/prisma/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/adapters/prisma/index.ts b/src/adapters/prisma/index.ts index 9301bf4..98fbf99 100644 --- a/src/adapters/prisma/index.ts +++ b/src/adapters/prisma/index.ts @@ -110,7 +110,7 @@ export default class PrismaAdapter if (query.originalQuery?.where) { parsed.where = parsePrismaWhere( JSON.parse(query.originalQuery.where), - this.manyRelations[resourceName] + this.manyRelations[resourceName] ?? [] ) } if (query.orderBy) {