A PHP Error was encountered

Severity: 8192

Message: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated

Filename: libraries/Filtered_db.php

Line Number: 23

Which option should be used with findAndModify() command to return the modified document instead of the pre-modification document?
Q:

Which option should be used with findAndModify() command to return the modified document instead of the pre-modification document?

0

Which option should be used with findAndModify() command to return the modified document instead of the pre-modification document?


  1. findAndModify by default returns the pre-modification document
  2. Set {new : true}
  3. Use the POST version of findAndModify called findAndModifyPost
  4. Both b and c are valid

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

Correct Answer:

B.Set {new : true}

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now