© 2026 LinearBytes Inc.
Search posts, tags, users, and pages
Milton Akash
Professional Hobbyst
I am developing an app using the above techs. I have a doubt about handling mongodb connections. Which one is the best
Pankaj Patel
Blog, Tech, Photography etc.
It is better to create one connection at the beginning/starting of app and share it through context.
This way you can share the Collections as well; otherwise for each resolve, you would have to do more lookups for related Queries/Collections.
Thank you
Pankaj Patel
Blog, Tech, Photography etc.
It is better to create one connection at the beginning/starting of app and share it through context.
This way you can share the Collections as well; otherwise for each resolve, you would have to do more lookups for related Queries/Collections.