2015-08-12

MongoDB - Retrieve docs where a given field ends with a certain letter (regex)

db.COLLECTION_NAME.find( { FIELD_NAME:{ $regex:"e$" } } );

No comments:

Post a Comment