The search can only be performed if the field is indexed with a text index. Perform a text search on the indicated field. Select documents that match the given regular expression. Matches documents where a given field’s value is equal to the remainder after being divided by a specified value. Validate the document according to the given JSON schema. Here is a list of common evaluation operators in MongoDB. We are only looking at the basic functionality of these operators as each of these operators can be considered an advanced MongoDB functionality. The MongoDB evaluation operators can evaluate the overall data structure or individual field in a document. In this example, we retrieve the document with the exact _id value “LS0009100”. Matches none of the values specified in an array. Matches values that are not equal to the given value. Matches if values are less or equal to the given value. Matches if values are greater or equal to the given value. Matches if values are less than the given value. Matches if values are greater than the given value. Matches values that are equal to the given value. The following table contains the common comparison operators. MongoDB comparison operators can be used to compare values in a document.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |