i want to find all documents by its first letter.
the case is when i query in mysql then i could do WHERE Stores LIKE 'a%'
the result would be all data with the first letter a.
the question are :
- How to make the same
query
usingmongoose
? - how about
case-sensitive
eg: (a,A)
. it would be the same query or not? - is it necessary to create
lowercase_field
for this case ?