how to check the second character match in mongoDB. in sql we are using like '_a%'. how to use in mongoDB??
            Asked
            
        
        
            Active
            
        
            Viewed 716 times
        
    1 Answers
0
            
            
        you should use syntax like below:-
db.users.find({"name": /.a./}) or like >> db.users.find({"name": /a/})
if you want to search for character "a"
 
    
    
        angular.aditya
        
- 115
- 1
- 1
- 10
