From d22be3ecb4b859bea159d58632b56bda856da92e Mon Sep 17 00:00:00 2001 From: Jason Lee Date: Tue, 29 Oct 2024 15:26:01 +0900 Subject: [PATCH] Enable nested populate query again. --- src/getQuerySchema.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/getQuerySchema.ts b/src/getQuerySchema.ts index b3f656d..d2de409 100644 --- a/src/getQuerySchema.ts +++ b/src/getQuerySchema.ts @@ -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),