diff --git a/source/includes/fact-timeseries-example-aggregation-book.rst b/source/includes/fact-timeseries-example-aggregation-book.rst new file mode 100644 index 00000000000..1f627588938 --- /dev/null +++ b/source/includes/fact-timeseries-example-aggregation-book.rst @@ -0,0 +1,4 @@ +For an additional example about :abbr:`IOT (Internet of Things)` +Power Consumption, see the `Practical MongoDB Aggregations +`__ +e-book. \ No newline at end of file diff --git a/source/reference/operator/aggregation/integral.txt b/source/reference/operator/aggregation/integral.txt index e38ccfb19bd..17128ab0c3c 100644 --- a/source/reference/operator/aggregation/integral.txt +++ b/source/reference/operator/aggregation/integral.txt @@ -187,3 +187,7 @@ In this example output, the energy consumption measured by meters 1 and { "_id" : ObjectId("60cbdc3f833dfeadc8e6286a"), "powerMeterID" : "2", "timeStamp" : ISODate("2020-05-18T14:12:00Z"), "kilowatts" : 2.82, "powerMeterKilowattHours" : 0.06383333333333334 } + +.. seealso:: + + .. include:: /includes/fact-timeseries-example-aggregation-book.rst diff --git a/source/reference/operator/aggregation/setWindowFields.txt b/source/reference/operator/aggregation/setWindowFields.txt index ec75dfaa32f..66566e29ba2 100644 --- a/source/reference/operator/aggregation/setWindowFields.txt +++ b/source/reference/operator/aggregation/setWindowFields.txt @@ -821,3 +821,7 @@ In this example output, the array of ``orderDate`` values for ``CA`` and { "_id" : 1, "type" : "chocolate", "orderDate" : ISODate("2021-03-20T11:30:05Z"), "state" : "WA", "price" : 14, "quantity" : 140, "recentOrders" : [ ISODate("2019-01-08T06:12:03Z"), ISODate("2020-02-08T13:13:23Z") ] } + +.. seealso:: + + .. include:: /includes/fact-timeseries-example-aggregation-book.rst