In our posts collection, which command can be used to find all the posts whose author names begin lie between “A” and “C” in dictionary order?
db.posts.find( { post_author : { $gte : “A” , $lte : “C” } } );
Well Done. Your Answer is Correct Keep it Up!
db.posts.find( { post_author : { $gte : “C” , $lte : “A” } } );
db.posts.find( { post_author : { $gt : “A” , $lt : “C” } } );
This type of search is not supported by MongoDB. $lt and $gt operators are applicable only for numeric values.