May 20, 2021 WeChat Mini Program Development Document
Database operator, obtained from db.command
The aggregate operator
The array updates the operator. A tomic operation. Given one or more elements, add an array unless it already exists in the array.
Array query operator. A query filter for array fields that requires that the array field contain all elements of a given array.
A query operator that represents the relationship between logical "and" and that multiple query filters need to be met at the same time
Update the operator. Bit operations are performed on the field, and and/or/xor operations can be performed.
A query filter for array fields that requires the array to contain at least one element that meets all the criteria given by elemMatch
A query filter that means that a field is equal to a value. The eq instruction accepts a literal amount, which can be number, boolean, string, object, array, Date.
Determine if the field exists
Query the operator, used to use the polymeric expression in the query statement, the method receives a parameter, the parameter must be a polymeric expression
Find a record of a given geographic graphic intersection
Find the field value in the nearby record from the near future.
Find the records in the specified area, no sorting.The specified area must be a polygon or a multipolygon.
Query the screening operator, indicating that it is more than the specified value.It can be passed to the Date object for a date comparison.
Query the screening operator, indicating that it is greater than or equal to the specified value.It can be passed to the Date object for a date comparison.
The query filter operator indicates that the required value is in a given array.
Update the operator, atomic operation, used to indicate that the field is from
Query the screening operator, indicating that it takes less than the specified value.It can be passed to the Date object for a date comparison.
Query filter operator, which means that the specified value needs to be less than or equal to. Date objects can be passed in for date comparison.
Update the operator, given a value that is only updated if the value is greater than the current value of the field.
Update the operator, given a value that is only updated if it is less than the current value of the field.
The query filter operator, given the divisor and the remainder, requires the field to be divided when the value % divisor is the remainder.
Update the operator, the atomic action, to indicate that the field is multiplied by a value
A query filter that means that a field is not equal to a value. The eq instruction accepts a literal amount, which can be number, boolean, string, object, array, Date.
The query filter operator, which means that the required value is not in a given array.
A query operator that represents a relationship with a logical "no" that does not meet all the specified criteria. If there are no fields in the record, the criteria are met by default.
A query operator that represents a logical "non" relationship that does not meet the specified criteria.
A query operator that represents a logical "or" relationship that requires multiple query filters to be met at the same time. Or instructions can be used in two ways, between "or" for field values and for cross-field "or" operations.
The array updates the operator to remove the tail element of the array from a field with an array value
The array updates the operator. Given a value or a query condition, all elements in the array that match a given value or query condition are removed.
The array updates the operator. G iven a value or a query condition, remove all elements in the array that match the given value. The difference with pull is that only constant values can be specified and arrays are passed in.
The array updates the operator. F or a field with an array of values, add one or more values to the array. Or if the field was originally empty, the field is created and an array is set as an incoming value.
Update the operator to indicate the deletion of a field.
Update the operator and rename the field. I f you need to rename nested deep fields, you need to use point path notation. Fields for objects nested in arrays cannot be renamed.
Update the operator to set the field equal to the specified value.
The array updates the operator to remove the array header element from a field with an array value.
Update the operator, the query filter for array fields, to require the array length to be a given value
The array updates the operator to add one or more values to the head of the array for a field with an array value. Or if the field was originally empty, the field is created and an array is set as an incoming value.