![]() The last step in an aggregation pipeline is always a projection this is because we can’t perform any other kind of operation on a document after it has been projected. It takes documents from a collection as input and produces other documents as output. The following example returns all documents where the title field contains “MongoDB Compass” and any author name matches Joe or John:ĭb.collection.find( ).sort("-createdAt").limit(10) Aggregation PipelinesĪn aggregation pipeline is an ordered sequence of aggregations, filters, and projections. Allows MongoDB to be used as a data source for Grafana by providing a proxy to convert the Grafana Data source API into MongoDB aggregation queries Requirements Grafana > 3.x.x MongoDB > 3.4.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |