fix: ensures you can query on nested block fields
This commit is contained in:
@@ -200,7 +200,7 @@ class ParamParser {
|
||||
return;
|
||||
}
|
||||
|
||||
if (priorSchemaType.instance === 'Mixed') {
|
||||
if (priorSchemaType.instance === 'Mixed' || priorSchemaType.instance === 'Array') {
|
||||
lastIncompletePath.path = currentPath;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -39,6 +39,8 @@ const connectMongoose = async (
|
||||
try {
|
||||
await mongoose.connect(urlToConnect, connectionOptions);
|
||||
|
||||
mongoose.set('strictQuery', false);
|
||||
|
||||
if (process.env.PAYLOAD_DROP_DATABASE === 'true') {
|
||||
logger.info('---- DROPPING DATABASE ----');
|
||||
await mongoose.connection.dropDatabase();
|
||||
|
||||
Reference in New Issue
Block a user