Skip to content

Commit

Permalink
fix: includes properties undefined error (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
jzyds authored Nov 22, 2021
1 parent 886c2e4 commit 5be3c38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/adapters/prisma/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export default class PrismaAdapter<T, M extends string>
if (query.originalQuery?.where) {
parsed.where = parsePrismaWhere(
JSON.parse(query.originalQuery.where),
this.manyRelations[resourceName]
this.manyRelations[resourceName] ?? []
)
}
if (query.orderBy) {
Expand Down

0 comments on commit 5be3c38

Please sign in to comment.