Skip to content

Commit 2ac5549

Browse files
committed
fix: set depth limit to 8
1 parent 213ecbc commit 2ac5549

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mongo_types.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,7 @@ export type PropertyType<Type, Property extends string> = string extends Propert
499499
* returns tuple of strings (keys to be joined on '.') that represent every path into a schema
500500
* https://docs.mongodb.com/manual/tutorial/query-embedded-documents/
501501
*/
502-
export type NestedPaths<Type, Depth extends number[]> = Depth['length'] extends 10
502+
export type NestedPaths<Type, Depth extends number[]> = Depth['length'] extends 8
503503
? []
504504
: Type extends
505505
| string

0 commit comments

Comments
 (0)