Skip to content

Commit

Permalink
Enable nested populate query again.
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonlee9023 committed Oct 29, 2024
1 parent 63beb28 commit d22be3e
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 d22be3e

Please sign in to comment.