Created
March 4, 2022 13:14
-
-
Save johnlpage/49338fe1d7dcea5004fbd8e36fff99bf to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
$let: { | |
vars: { | |
targetdoc: { | |
$max: { | |
$filter: { | |
input: "$location_lookup_targettemps", | |
cond: { | |
$gte: ["$$this.to", "$miltime"] | |
} | |
} | |
} | |
} | |
}, | |
in: { | |
$subtract: ["$average", "$$targetdoc.target"] | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment