Skip to content

Commit

Permalink
Merge pull request #469 from leemin0830/enable-nested-populate
Browse files Browse the repository at this point in the history
Enable nested populate query again.
  • Loading branch information
florianholzapfel authored Oct 29, 2024
2 parents 5156875 + d22be3e commit ec46992
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/getQuerySchema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ const PopulateOptionsSchema = z.object({
match: z.record(z.unknown()).optional(),
options: z.record(z.unknown()).optional(),
select: z.string().optional(),
populate: z.record(z.unknown()).optional(),
// Configure populate query to not use strict populate to maintain
// behavior from Mongoose previous to v6 (unless already configured)
strictPopulate: z.boolean().optional().default(false),
Expand Down

0 comments on commit ec46992

Please sign in to comment.