-
Notifications
You must be signed in to change notification settings - Fork 5
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
TypeError: prisma.item.cursorStream is not a function #1
Comments
Hello @erikstorli! I believe this issue is because you are using the |
Hello again @erikstorli! It seems that in the require syntax you only need to make a slight modification: const cursorStream = require('prisma-cursorstream').default; and it should work! Please test and let me know. |
Works perfectly, and made the memory usage in the script much better than pagination. Thank you very much! |
My pleasure! Happy to read about your experience, as it makes what I'm doing more meaningful. I documented this in the README file, too. Thank you! P.S. Do you mind if I use what you wrote as a testimonial in the documentation? Something along the lines of:
Best! |
No problem at all 👍 Thank you again! |
This is client.js which I use around my project:
Then I initialize the client, and use it like this:
But I just get
TypeError: prisma.item.cursorStream is not a function
. What am I doing wrong? findMany works. Using Prisma 5.6.0.The text was updated successfully, but these errors were encountered: