You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried to bump mongoose to 5.12 but I'm a newbie and I can't do it right.
I continue to have compiling errors like this :
Type 'LeanDocument' is missing the following properties from type 'Blog': $getAllSubdocs, $ignore, $isDefault, $isDeleted, and 48 more.ts(2740)
Type 'Promise' is not assignable to type 'Promise<Blog[]>'.
Type 'Blog' is missing the following properties from type 'Blog[]': length, pop, push, concat, and 28 more.ts(2322)
Could someone eventually check and propose a fix?
Regards
The text was updated successfully, but these errors were encountered:
I tried to bump mongoose to 5.12 but I'm a newbie and I can't do it right.
I continue to have compiling errors like this :
Type 'LeanDocument' is missing the following properties from type 'Blog': $getAllSubdocs, $ignore, $isDefault, $isDeleted, and 48 more.ts(2740) Type 'Promise' is not assignable to type 'Promise<Blog[]>'. Type 'Blog' is missing the following properties from type 'Blog[]': length, pop, push, concat, and 28 more.ts(2322)
Could someone eventually check and propose a fix?
Regards
change .lean<Blog>() to .lean<Blog[]>() whereever you are getting that error.
Hi,
I tried to bump mongoose to 5.12 but I'm a newbie and I can't do it right.
I continue to have compiling errors like this :
Type 'LeanDocument' is missing the following properties from type 'Blog': $getAllSubdocs, $ignore, $isDefault, $isDeleted, and 48 more.ts(2740)
Type 'Promise' is not assignable to type 'Promise<Blog[]>'.
Type 'Blog' is missing the following properties from type 'Blog[]': length, pop, push, concat, and 28 more.ts(2322)
Could someone eventually check and propose a fix?
Regards
The text was updated successfully, but these errors were encountered: