May 20, 2021 WeChat Mini Program Development Document
The database collection reference
Gets a reference to the specified record in the collection. The method accepts an id parameter that specifies the value of the record to _id.
New records, _id is automatically generated by the background if the incoming record object does not have an _id field, and _id cannot conflict with an existing record if _id is specified
To initiate an aggregation operation, you need to call the end method flag to end the definition and actually initiate the aggregation operation after defining the aggregation pipeline stage
Count the number of bars that match the query criteria
Specifies the fields that need to be returned for the record in the return result
Get collection data, or get collection data that is filtered based on query criteria.
Specifies the maximum number of query result sets
Specify the query sort criteria
Delete multiple records. Note that skip and limit are only supported for deletion by matching where statements.
When a specified query returns results, it starts with the results of the specified sequence and is often used for plying
Update multiple records
Listen for update events for data in the collection that meets the query criteria. Where, orderBy, limit, field is not supported when using watch.
Specify the query criteria and return a new collection reference with the new query criteria