1.

Point out the correct statement.(a) $regex is used for regular expression pattern matches(b) $like is used for regular expression pattern matches(c) $reg is used for regular expression pattern matches(d) All of the mentionedI had been asked this question during an interview.Query is from Model Data for Atomic operations in division Data Models of MongoDB

Answer»

Correct answer is (a) $regex is USED for REGULAR expression PATTERN matches

Explanation: If your application needs to perform queries on the content of a field that holds text you can perform EXACT matches on the text.



Discussion

No Comment Found

Related InterviewSolutions