multiple services same model #2366
Unanswered
devops724-2
asked this question in
Q&A
Replies: 1 comment
-
+1 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there
setup two service and set model name as
const modelName = 'companies';
i try have same collection with multiple data design
but get this error on query
"stack":"MongooseError: Operation
companies.countDocuments()
buffering timed out after 10000ms\n at Timeout. (/home/workspace/piotrek/dss/server/node_modules/mongoose/lib/drivers/node-mongodb-native/collection.js:185:20)\n at listOnTimeout (internal/timers.js:554:17)\n at processTimers (internal/timers.js:497:7)","message":"Operationcompanies.countDocuments()
buffering timed out after 10000ms"}] as {"type":3,"nsp":"/","id":3,"data":[{"stack":"MongooseError: Operationcompanies.countDocuments()
buffering timed out after 10000ms\n at Timeout. (/home/workspace/piotrek/dss/server/node_modules/mongoose/lib/drivers/node-mongodb-native/collection.js:185:20)\n at listOnTimeout (internal/timers.js:554:17)\n at processTimers (internal/timers.js:497:7)","message":"Operationcompanies.countDocuments()
buffering timed out after 10000ms"}]} +10sBeta Was this translation helpful? Give feedback.
All reactions