Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CreateQuery doesn't exist? #471

Open
dylanh724 opened this issue Mar 7, 2021 · 2 comments
Open

CreateQuery doesn't exist? #471

dylanh724 opened this issue Mar 7, 2021 · 2 comments

Comments

@dylanh724
Copy link

dylanh724 commented Mar 7, 2021

image

I can import anything else fine from 'mongoose' -- just CreateQuery.

@tomanagle
Copy link
Owner

Have you installed @types/mongoose?

@DaDoBaag
Copy link

DaDoBaag commented Sep 2, 2021

Afaik @types/mongoose is deprecated since mongoose now exports its own types and those don't include CreateQuery for some reason. Instead I just use a normal interface as the document type for insert queries.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants