These are chat archives for Automattic/mongoose

21st
Mar 2017
rbrandino1
@rbrandino1
Mar 21 2017 12:30
Hello All....

I have a question, I have not been able to identify the best solution yet ...
I have two separate projects that will connect to the same mongodb base. The first project is a web portal, which is where the user will perform the registrations in mongodb, ie, it is in him that I have all the structure of Schema of mongoose ....
The second one is an AWS Lambda function, which will perform a search on that same mongodb.

My question is: Using mongoose in my Lambda function, will I even need to duplicate my mongoose Schema in both projects, to have access to queries ??