Skip to content

Commit ec46992

Browse files
Merge pull request #469 from leemin0830/enable-nested-populate
Enable nested populate query again.
2 parents 5156875 + d22be3e commit ec46992

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/getQuerySchema.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ const PopulateOptionsSchema = z.object({
55
match: z.record(z.unknown()).optional(),
66
options: z.record(z.unknown()).optional(),
77
select: z.string().optional(),
8+
populate: z.record(z.unknown()).optional(),
89
// Configure populate query to not use strict populate to maintain
910
// behavior from Mongoose previous to v6 (unless already configured)
1011
strictPopulate: z.boolean().optional().default(false),

0 commit comments

Comments
 (0)