Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Spark
  3. Question
Spark

Mongoose - What does the exec function do?

Asked by Joseph Slater May 13, 2021 1.9K views 1 answer
Share

About this question

 I came across a piece of Mongoose code that included a query findOne and then an exec() function.

I've never seen that method in Javascript before? What does it do exactly?

Your answer

1 Answer

More Spark discussions

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.

Latest Spark Blogs

Guides, tips and career advice on Spark from JanBask experts.