mongodb / stitch-examples

MongoDB Stitch Examples
Apache License 2.0
138 stars 89 forks source link

error: 'TypeError: Cannot access member \'db\' of undefined' #77

Open xxyyzz2050 opened 6 years ago

xxyyzz2050 commented 6 years ago

node data_generator.js

{ error: 'TypeError: Cannot access member \'db\' of undefined',
  error_code: 'FunctionExecutionError',
  link: 'xxx' }
MongoCaleb commented 5 years ago

@xxyyzz2050 this sounds like an error within the stitch function you created, and is often seen when the reference to the atlas service is not set up correctly. If you are still blocked, please post your function here and I'll take a look.

ritikadash commented 4 years ago

@MongoCaleb TypeError: Cannot access member 'aggregate' of undefined How do I solve this error in mongodb??